=> On [2011-10-21 14:02:01 +0800]: du yang Said: > On Tuesday 10/11/11 13:41:15 CST, stardiviner wrote: > > How to *automatic* save mails from pyt...@python.com in INBOX/ to folder > > Python/ > > when I quit or switch mail folders. > > I have readed man muttrc, and mutt wiki, can not find a good solution. > > I tried to search mutt mailing list archive, not found too. > > I think save-hook cannot do this. maybe some triggers can do this. > > > > Thanks in advance. > > > > Try to use a macro like this, > > folder-hook "=INBOX" "push '<tag-pattern> ~f > pyt...@python.com<enter><tag-prefix-cond><save-message>=Python/<enter><end-cond><sync-mailbox>'" This almost can arrive my destination. Is there a way to make it only execute this hook when you leave Mutt ? I usually press *q* to leave Mutt. Maybe I can rebind key *q* with this hook, and add *quit* behind this hook. this seems can not work. Do you have better solution ? > > -- > oooO::::::::: > (..)::::::::: > :\.(:::Oooo:: > ::\_)::(..):: > :::::::)./::: > ::::::(_/::::
-- stardiviner GPG: 5D9F64D8 Twitter: @numbchild http://stardiviner.dyndns-blog.com/author.html
signature.asc
Description: Digital signature