procmail
[Top] [All Lists]

Re: parsing TLD?

2001-08-28 20:36:38
John Conover asked,

| For a header record, "Envelope-To: 
someone(_at_)somemachine(_dot_)someplace(_dot_)com",
| is it possible to parse someplace.com into the $MATCH variable?

 # inside brackets, period is not magic
 * ^Envelope-To:.*\/[^(_at_)(_dot_)]+\(_dot_)[^(_dot_)]+$
 # second condition, only if the trailing newline will cause a problem
 * MATCH ?? ^^\/.+

ought to work.


_______________________________________________
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>
  • parsing TLD?, John Conover
    • Re: parsing TLD?, David W. Tamkin <=