Lukas Schroeder wrote:
> On Wed, Jul 31, 2002 at 11:12:11AM +0200, Rocco Rutte wrote:
>> * Lukas Schroeder [02-07-30 23:37:57 +0200] wrote:
>> > does mutt have some basic shell functionality built in?
>> > i'd like to 'cd' and 'pwd', so that i can conveniently
>> > store attachments where i want them - especially when i
>>
>> I've made a short patch adding a variable ``attach_dir''
>> which is the default location to save attachements to. If it
>> is empty, mutt uses the current directory; if not the
>> specified is prepended so that you can already see at the
>> prompt where your files will end up.
>
> but i have to save all attachments into that single directory?  that's
> basically what i excercise now: save to ~/tmp and move the files later,
> to where they should've gone in the first place...

But you can specify a path name relative to your home directory.
By default, mutt suggests a file name in your home directory which
you can prepend with the desired relative path.

> what i have in mind is functionality similar to vim's :cd and :pwd
> commands. that would make my day(s)...
> this is not yet implemented, is it?

That wouldn't even require a new command. IMHO it would be enough
to simply let mutt "remember" the target directory of the last
save operation. For example, if I have numerous attachments of
some sort of data, all to be saved into the same directory "data",
I would specify "data/file1.dat" as output path name, and in the
next save operation mutt would suggest "data/file2.dat", i.e.
remember that the last attachment was written to directory "data".
There would be no need to save that information to a file as it
would be sufficient to remember it during one mutt session, though
it would be nice to set a default directory as with the attach_dir
patch.

Cheers,
Joachim

Reply via email to