procmail
[Top] [All Lists]

Re: parsing email addresses

2002-11-16 10:36:32
On Sat, 16 Nov 2002, Eric Smith wrote:

Has anyone written a procmailish approach to extracting each
email-address / comment pair in a header?

http://www.well.com/user/barts/email/rfc822.txt

It doesn't handle comments because regular expressions can't deal directly
with balanced nested parentheses -- you need a recursive parser for that.
But then you're already going to need a recursive INCLUDERC to parse an
arbitrary number of addresses off a single header; I don't have time to
work that out, today ...


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