Help with procmailrc file
Dan Ritter
dsr-mzpnVDyJpH4k7aNtvndDlA at public.gmane.org
Tue Sep 9 09:11:31 EDT 2008
On Tue, Sep 09, 2008 at 07:46:19AM -0400, Scott R. Ehrlich wrote:
> 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).
Think about your regexp. What comes after your despised TLDs?
-dsr-
--
http://tao.merseine.nu/~dsr/eula.html is hereby incorporated by reference.
When freedom gets lots of exercise, it protects itself.
More information about the Discuss
mailing list