Nick Wilson <[EMAIL PROTECTED]> asked: > Anyone got the equivelant Procmail recipe for dumping mail if > it's text/html ot not addressed to you? I use this to get the > latter: > > :0: > * !(^[EMAIL PROTECTED]) > ~/Mail/Other/suspect > > Which works fine, adding the ability to weed out html would > make it much better.
Actually, I think I'd use one recipe to "catch" the html messages first, then dump the messages not explicitly addressed to me last. Perhaps something like this: # BEGIN recipe MAILDIR=${HOME}/Mail :0 i: * ^content-type: text\/html | formail -i "X-Spam-reject-reason: HTML-only" \ >> ${MAILDIR}/IN-spam # The following needs to be the last recipe. It dumps anything # remaining that specifically mentions my addresses into the mail # spool, and then anything else into the $MAILDIR/IN-spam # mailbox. ME='(some happy regexp describing my email addresses)' :0: * $ ^TO_$ME $ORGMAIL DEFAULT=${MAILDIR}/IN-spam :0 f: | formail -i "X-Spam-reject-reason: not explicitly addressed to me" # END recipe (and END of ~/.procmailrc file) -- Mr. Wade -- Once we've got the bugs ironed out, we'll be running on flat bugs.