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: "`" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>

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 [EMAIL PROTECTED]
* -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 [EMAIL PROTECTED]
* 15^0 Message-Id:[EMAIL PROTECTED]
* 15^0 @jgrim
* 2^0
/dev/null

In 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 [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to