procmail
[Top] [All Lists]

Re: {Blocked Content} Re: Filtering with Procmail before it goes to spamassassin.

2004-07-23 20:55:08
* Stephen Kuhn <stephen(_dot_)kuhn(_at_)gmx(_dot_)net> [2004-07-23 17:34]:

So in essence, I could create a rule at the end of my
/etc/procmailrc and do the same for each address I have (including
mailing lists) and effectively kill off anything that isn't truly
addressed to me, ya?

Sure, but if you have a friend who sends you and couple of his other
friends a message, and he doesn't want everyone to see each others
address, he might BCC you, in which case you would trash the message.
You should still capture the messages addressed to you on the envelope
but not addressed to you in the body header.

Kinda like:

########################################

:0
* TO(_dot_)skuhn(_at_)telpacific(_dot_)com(_dot_)au
 stephen/

:0
* TO(_dot_)stephen(_dot_)kuhn(_at_)gmx(_dot_)net
 stephen/

:0
* TO(_dot_)procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
 stephen/

:0
 /dev/null

########################################


That would do it.  Or you could do it this way:

  VALID_RECIPIENTS=(\
  skuhn(_at_)telpacific(_dot_)com(_dot_)au|\
  stephen(_dot_)kuhn(_at_)gmx(_dot_)net|\
  procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE)
  
  :0
  *$ ^TO_$VALID_RECIPIENTS
  stephen/
  
  :0
  questionable_messages/

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail