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

Re: save indirect



Hi Dave,

Here is the text of that page:

16. Specify Default Save Mailbox

Usage:

save-hook [!]pattern mailbox

This command is used to override the default mailbox used when saving
messages. mailbox will be used as the default if the message matches
pattern, see Message Matching in Hooks for information on the exact
format.

To provide more flexibility and good defaults, Mutt applies the expandos
of $index_format to mailbox after it was expanded.

Example 3.12. Using %-expandos in save-hook

# default: save all to ~/Mail/<author name>
save-hook . ~/Mail/%F

# save from me@xxxxxxxxxxxxxxxxx and me@xxxxxxxxxx to $folder/elkins
save-hook me@(turing\\.)?cs\\.hmc\\.edu$ +elkins

# save from aol.com to $folder/spam
save-hook aol\\.com$ +spam


Also see the fcc-save-hook command. 


On Sat, May 16, 2009 at 01:16:33PM -0500, Dave Feustel wrote:
> On Sat, May 16, 2009 at 06:58:42PM +0200, Rocco Rutte wrote:
> > Hi,
> > 
> > * Dave Feustel wrote:
> > 
> > > ie. the table lookup could return 'drxxxxx' in which filename email
> > > from 'listmanager' would be saved by the 's' command?
> > 
> > You can read:
> > 
> >   http://dev.mutt.org/doc/manual.html#save-hook
> > 
> > and see if some of the supported expandos gets you close enough to what 
> > you need. If that doesn't help: no, there's no such table lookup.
> > 
> > Rocco
> 
> I can get to dev.mutt.org/doc, but firefox does not bring up
> manual.html. I'm running NoScript.