On Sat, Apr 01, 2000 at 08:43:46PM -0500, John P. Verel
([EMAIL PROTECTED]) said:
> I'd like to be able to save attachments to a specific directory. I
> don't see any way to set this up in the configuration file.
>
> I do, however, have Sven's sample .muttrc which as a macro to do aid
> in this.....which, unfortunately, I do not understand. Sven's macro
> reads:
>
> macro attach s S^A~/Mail/ATTACH/
>
> So, two questions. Is there a way to do this in the .muttrc?
Other than Sven's way, not that I know of. Probably because that
works fine. :-)
> Second, an explanation of how the macro above works?
There's another part Sven had that you left out, which will look
something like
bind attach S <some-function-which-probably-has-save-in-its-name>
You'll want to check out section 3 of the manual, specifically those
parts about changing default bindings and making macros, but this is
what Sven's macro does:
> macro attach s S^A~/Mail/ATTACH/
^^^^^^^^^^^^
This means this macro applies in the attach menu.
> macro attach s S^A~/Mail/ATTACH/
^
The s key in the attach menu will call this macro.
> macro attach s S^A~/Mail/ATTACH/
^^^^^^^^^^^^^^^^^
When the user pushes the s key in the attach menu, it will be as
though they had pressed the S key (which calls save attachment, I
believe), then the control-A key (which puts you at the beginning of
the line, in front of the suggested filename) then ~/Mail/ATTACH/
(which prepends the given directory name to the suggested file name).
So if you wanted to save the files to, say, the directory
~/mutt/RTFM
you would change the the macro above to
macro attach s S^A~/mutt/RTFM/
--
Jim Toth
[EMAIL PROTECTED]