procmail
[Top] [All Lists]

Re: Recipe matching

2001-12-19 09:01:32
Paul Chvostek <paul(_at_)it(_dot_)ca> says...

On Tue, Dec 18, 2001 at 04:27:55PM -0500, High Flight wrote:

  * ^Received: .*\([a-z0-9\.]+\.(ch|pl)[ ]

Is there supposed to be a space after the  :  and before the .     ?

Up to you.  Every received line in the mailboxes I've looked at has a
space after the first colon.  Look at yours, and decide for yourself.

I'm new to procmail, and I'm not that technically astute.  In other
examples I've seen there was never a space, so I wanted to ask just to
make sure.


:0
* ^Received: .*\([a-z0-9\.]+\.(ae|ar|at|au|br|ca|ch|cn|cz)[ ]
/u/ja/jac/mail/junk

Then you won't be getting any mail from me, because I'm in .ca.

Of course I still get it.  But it's in a different folder.


* ^Received: .*\([a-z0-9\.]+\.(de|in|ir|jp|kr|mgc|nl|pg|pl)[ ]
...
* ^Received: .*\([a-z0-9\.]+\.(ru|se|tw|ua|uk)[ ]

Heck, why not just use:

      * ^Received: .*\([a-z0-9\.]+\.[0-9][0-9][ ]

and avoid having to add new countries as they crop up in the future?

I don't understand your reaction.  For now, redirecting mail from those
countries redirects about half of my spam, and about 5% of legitimate
mail.  I'm just trying to set up my own procmail filter, but I have nowhere
near the technical skill or ability of this list's subscribers.

But I sincerely thank you for your help.  I'm a lot further ahead now than
when I began.

                                Jack

-- 
aka Keet        Visit my web page at http://junior.apk.net/~jac/
    * If you post a followup, -DO NOT- email me a copy of it! *
    Fun photo contest: http://home.dal.net/jam/kimva_photo.html
"We were trying to compete with The Beach Boys and Pet Sounds" - Guess!

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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