* munk <[EMAIL PROTECTED]> [2002-05-13 23:14]:
> I'm having trouble getting the 'save-hook' command
> to work properly in my .muttrc file.
> The current settings I have look as follows:
> 
>   save-hook mutt +mutt-users-list
>   save-hook bugtraq +bugtraq-list
>
> but whenever I press 's' to save a mail that
> includes 'mutt' or 'bugtraq' in the 'From' header
> field, the default 'save' folder selected is never
> 'mutt-users-list' or 'bugtraq-list' respectively.
>
> I can't work this out at all - does anyone
> else use the save-hook function with joy?

make the first parameter a pattern:

    save-hook "~f mutt"      +mutt-users-list
    save-hook "~f bugtraq"   +bugtraq-list

you might want to identify messages *to* mailing list
by their distribution address, though:

    save-hook "~C address1"  +mutt-users-list
    save-hook "~C address2"  +bugtraq-list

enjoy!

> Also I'm not sure of the difference
> between +file and =file - is there any???

yes - spelling.  they are synonyms.
however, "+foo" and "=foo" might
not be synonyms to your shell...

> Are = and + expanded to ~ in all cases???

no - they are expanded to $folder.

> From: munk <[EMAIL PROTECTED]>

and get a hair cut.. mink.. munk.. whatever.

Sven

Reply via email to