On 3 Feb 1999 11:30:59 -0800, James FitzGibbon james@ican.net wrote:
On Wed, 3 Feb 1999, Graham Knight wrote:
It would be nice to find a way to not have these things constantly mailed to me.
:0:
- ^From:.*surveys@surveycompany.com
/dev/null
Yes, procmail(1) is your friend (I thought I'd mention the name since everyone doesn't necessarly recognize a procmail rule :-D)
However, I tend not to drop them. I have for instance the following in my .procmailrc:
--- :0 c: * ^From: .*zdemail.com | (formail -rp "" -I"Cc:" -A"From: nobody@uu.net" -A"X-Loop: nospam@magic.metawi re.com" -A"Precedence: junk"; cat $PMDIR/spam_zd ) | $SENDMAIL -oi postmaster@zd email.com,zdup2_tm@zdemail.com,evmaint@zdemail.com,comdex@zdemail.com,postmaster @zd.com,netadmin@zd.com,nicadmin@zd.com,nictech@zd.com,nicbill@zd.com (this entry is repeated 10 times)
:0 A: zd ---
The Emails have to be carefully picked obviously. Note that netapp does not deserve the same treatment. In the above example, zd was sending obnoxious spams and dropped my request to unsubscribe. One bounce may be appropriate though.
Or do they use From address designed to look like it's coming from NetApp ? (i.e. such that the rule would delete legitimate mail as well)
then you can match on the subject line...
Marc