<<< Date Index >>>     <<< Thread Index >>>

Re: Save multiple attachements at once.



Thus spake William O'Higgins:
> >> On Wed, Mar 03, 2004 at 08:56:17PM +0000, Jack Bertram wrote:
> >> > What if you want to save all the attachments with their original
> >> > filenames in a different directory from your working directory?
> >> Yes, that was the question.  I get sent a collection of attachements and
> >> I want quickly dump all 200 of them into a single (likely new)
> >> directory.
> >
> >This is a feature request I've thought about too. It would be cool if the
> >working directory of mutt could be changed from within mutt.
> 
> Could you not build a wee macro for this?  I did some cursory looking,
> but I didn't find a $mutt_working_directory configuration option, but,
> assuming there is one and I missed it, could you not just make a
> directory (by prompt would be best, but I'd take something like
> ~/mutt_temp), set the $mutt_working_directory to that directory, save
> the whole wodge, and then reset the $mutt_working_directory?
> 
> I'd certainly use such a macro if I knew how to write it.

Off the top of my head and completely untested, but how about something
like:

bind attach \cs 'macro attach s <save-entry><bol>/home/al/mutt_temp/<eol>'
bind attach \cy 'bind attach s save-entry'

Then you can simply switch the binding of s on the fly.

Just a thought.

Al