Help with procmailrc file
Derek Atkins
warlord-DPNOqEs/LNQ at public.gmane.org
Tue Sep 9 10:57:50 EDT 2008
"Scott R. Ehrlich" <scott-DPNOqEs/LNQ at public.gmane.org> writes:
> 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).
What happens if you add a dollar ($) to the end of the domain list?
Does this work:
* .+\.(uk|tw|cn|pl|de|cz|za|ch|ie|be|ru|uk|in|nz|hk|fr|kr|jp|br|fi|il|ca|at|kd|mx|au|sg|si|no|it)$
> Thanks.
>
> Scott
-derek
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord-DPNOqEs/LNQ at public.gmane.org PGP key available
More information about the Discuss
mailing list