Hi.
I have tried to create a save-hook for a mailing list that I am on, but it doesn't 
seem to work. I may be confusing the way save-hook works though, so please correct me 
if I am way off.

I created a hook in my .muttrc file:

save-hook linuxsa +linux

I assumed this was going to save any mail that contained "linux" in the To: field, 
into my ~/mail/linux mailbox. When I do a save (s only) it goes through the normal 
process of asking what mailbox to save to...

I later noticed in reading the manual, that when the full expression is not described 
in the hook, a default_hook variable decides how to parse the expression. So I added 
the following line to my .muttrc file:

set default_hook="~f %s !~P | (~P ~C %s)"

I still can't get the mail to save in the linux mailbox. Could someone please point me 
in the right direction?

regards,
Andrew O'Callaghan

Reply via email to