On Thu, Mar 20, 2003 at 11:50:44PM +0100, Dallman Ross wrote:
This should work:
:0 D # inside brackets is a space and a tab
* ^To:[
]*<?\/[a-z0-9]+\(_dot_)[0-9][0-9](_at_)domain\(_dot_)tld\>
* 21^0 MATCH ?? ^^\/[a-z0-9]+
* -1^1 MATCH ?? [a-z0-9]
{ do_something }
Sean was right about the D flag's matching on the domain, too.
We can avoid that thus:
:0 # inside brackets is a space and a tab
* ^To:[
]*<?\/[a-z0-9]+\(_dot_)[0-9][0-9](_at_)domain\(_dot_)tld\>
* MATCH ?? ^^\/[a-z0-9]+
CANDIDATE = $MATCH }
:0 DA
* 21^0
* -1^1 CANDIDATE ?? [a-z0-9]
{ do_something }
--
dman
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail