-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday, September 19 at 10:47 PM, quoth M. Fioretti: >For several reasons not really relevant here, I have the messages of >several mailing lists delivered to one common inbox folder. When I >have read them, I want to tell mutt, with one keystroke, to look at >all the messages I have tagged and save each of them to the folder >corresponding to its mailing list. What if I do something like: > >message-hook '~h ?List-id Centos' 'save-hook +centos' >message-hook '~h ?List-id OpenOffice' 'save-hook +openoffice' >message-hook '~h ?List-id someotherlist' 'save-hook +someotherlist' > >what happens when I type ";s" ? will mutt do the right thing, that is >using all those hooks save each message to the folder it belongs to >according to the rules above?
No. Message-hooks only trigger when you *view* a message. >If not, what is the right method to do it? Use a macro that will tag each category in turn, and save them to the appropriate location: macro index ,s '<tag-pattern>~h ?List-id Centos<enter>\ <tag-prefix><save-message>+centos<enter>\ <tag-pattern>~h ?List-id OpenOffice<enter>\ <tag-prefix><save-message>+openoffice<enter>\ <tag-pattern>~h ?List-id someotherlist<enter>\ <tag-prefix><save-message>+someotherlist' ~Kyle - -- Science has proof without any certainty. Creationists have certainty without any proof. -- Ashley Montague -----BEGIN PGP SIGNATURE----- Comment: Thank you for using encryption! iD8DBQFG8oisBkIOoMqOI14RAjXXAKD7FbPpMp1x3arNfaLRLF2ngiETlACgogQ7 V8E/jqETfQ/anLcagYJcW8I= =HMtJ -----END PGP SIGNATURE-----