procmail
[Top] [All Lists]

Re: Juno/hotmail/prodigy filtering

1998-01-02 02:03:08
if the Message-ID doesn't contain the proper domain,
then the message is dumped as a spam:

Any recommendations for improvements?  How about sample
headers from other mail services similar to juno and hotmail?

  My recommendation... rather than umpteen variants to handle
umpteen different mail services, how about one generalized
version.  I'm still hazy about $MATCH, but here's a possible
algorithm...

I agree -- making this more extensible would be a Good Thing.  Here's
a possibility using $MATCH:

   :0:
   * ^From: [^(_at_)]+@\/[^ ]+[ ]+
   * !^(Received|Message-Id):.*$MATCH
   couldbespam

  I don't know how to capture the "some.isp.com" portion, but
if it's do-able, then...

What procmail does it take whatever is to the right of "\/" in the
regular expression and set it to $MATCH.  So in the above recipe,
it pulls everything that's to the right of the first @ sign up
to the next space, which ends up being the hostname/domain name.

Unfortunately, this matches on way too much stuff for me right now,
so I'll have to do some fine-tuning...

Chris

<Prev in Thread] Current Thread [Next in Thread>