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

automatically flagging messages based on content



hey kids,

anyone know the best way to have mutt automatically flag messages when
they come in?  i know you can do some things like this in procmail and
have them sent to a certain place, or add a special header or
whatever, but how can one make mutt flag messages ONLY if the search
succeeds?  i thought me's user-defined macro patch might help, but it 
only seems to just name certain macros.  there still seems to be no 
ability to do simple if-then kind of conditions.

folder-hook blah push "/~s (plumbing\|linux) ~b 'steve\|poop'\nF"

will work fine, however, if no message matches the above condition of
having a subject line containing 'plumbing' or 'linux' and 'steve' or
'poop' in the body, the first new message or last message in the mailbox
blah will always be flagged.  any ideas?

thanks,
-- 
 *------------------------*
//  ste\/e || 0x44288D05 //
*------------------------*

Attachment: pgpqy1VUaU26m.pgp
Description: PGP signature