Help with procmailrc file

Adam Russell rus20376-oL8XVplsoaEqDJ6do+/SaQ at public.gmane.org
Tue Sep 9 13:26:35 EDT 2008


People have been trying to avoid spam by naively filtering based on TLD for a *long* time. 
I hope this is not what you are trying to do.
It is a bad idea to do this on anything other than, perhaps, your own personal toy email server.

>Message: 11
>Date: Tue, 9 Sep 2008 07:46:19 -0400 (EDT)
>From: "Scott R. Ehrlich" <scott-DPNOqEs/LNQ at public.gmane.org>
>Subject: Help with procmailrc file
>To: discuss-mNDKBlG2WHs at public.gmane.org
>Message-ID:
>	<Pine.GSO.4.64L.0809090725470.25856-Ya0xOJB3NEDODvLUw0Eh0jyo3AZ8UMn9 at public.gmane.org>
>Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
>
>I found a procmailrc recipe that helps filter on TLDs:
>
>  Filter by top level domains
>:0 HB
>* .+\.(uk|tw|cn|pl|de|cz|za|ch|ie|be|ru|uk|in|nz|hk|fr|kr|jp|br|fi|i
>l|ca|at|kd|mx|au|sg|si|no|it)
>{
>         :0
>         $TRASH
>}
>
>
>But it also catches .info, I had .co in there which caught .com 
>accidentally.  I'm continuing a google search, but how do I, or can I, 
>have procmail only filter on the TLDs in the list, and not use it as a 
>grep (i.e. find .in, not .info, find .co, not .com).
>
>Thanks.
>
>Scott






More information about the Discuss mailing list