Matthew Sackman wrote:
On Tue, Jun 04, 2002 at 12:57:50AM -0700, AE Roy wrote:I know that this is kind of off-topic, but I'm asking you folks anyway because I'm sure you've experienced the same as me. I keep getting mail, spam-mail about 40 each day, and I don't know how to get procmail to handle them. They all have a To:-filed containing some other address than mine, e.g To: "`" <2062@sprint.com> To: Amundsen@jasmine.pcpros.net To: <karl@sprin.com> Especially I get alot of those with a mail address inside <>, how do I get procmail to handle this.
You can add recipies to .procmailrc that will "weigh" mail. Here is a short example:
* -5^0 ^TO_.*@xcf.berkeley.edu * -5^0 ^TO_.*xemacs.org * -5^0 ^TO_.*yahoogroups.com * 15^0 ^TO_.*chejugo.co.kr * 15^0 Subject:.*Hot and nasty cum guzzling teens! * 15^0 from ympi@localhost * 15^0 Message-Id:.*@baldbons * 15^0 @jgrim * 2^0 /dev/nullIn the above, you assign a negative value to mail you want to keep, a positive value to spam sources. The second to the last line gives a default positive value to everything. Mail that goes through this filter and has a positive total value goes to the bit bucket. Mail with a negative value continues on through .procmailrc.
With this filter I can only receive mail that has one of my email addresses in the To: or Cc: field, and that isn't from one of the listed spammers that I've included in the filter.
Glen --To UNSUBSCRIBE, email to debian-user-request@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org