procmail
[Top] [All Lists]

Re: Unlikely digraph

2004-03-28 22:07:50
Toen ik fleet(_at_)teachout(_dot_)org kietelde, kwam er dit uit:

The log *does* say "Match on "(a[abjoqwx]|b[dfghjkmnpqvwxz]...)"" when
processing the second condition; which gives me some hope that the
information is available and I just don't know how to retrieve it.

Rewrite it to

# :0
# * ^From:[       ].*<\/.*@
# { H_From = $MATCH }
# :0
# * 9876543210^0 H_From ?? \/a[abjoqwx]
# * 9876543210^0 H_From ?? \/b[dfghjkmnpqvwxz]
# * etc.
# { Match1 = $MATCH }

and you know the starting letter.


Beware: your From:condition only matches From:lines
with whitespace following the colon, and a hook
before the mail-address. From: user(_at_)domain(_dot_)tld
would be missed. In this case the following might
be better:

# :0
# * ^From:.*<\/[^  @]*@
# * MATCH ?? ^^\/[^(_at_)]*
# { H_From = $MATCH }
# :0E
# * ^From:.*\/[^  @]*@
# * MATCH ?? ^^\/[^(_at_)]*
# { H_From = $MATCH }

(untested)

-- 
Affijn, Ruud

_______________________________________________
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>