
On Sun, 6 Oct 2013 11:01:13 PM Russell Coker wrote:
Does anyone know of a good free library for parsing email addresses?
Library no, but Fetchmail by ESR has an rfc822.c that it uses for parsing addresses that is adaptable (indeed it's used inside of the Vacation program that I'm maintaining) - MIT licensed. Now available on gitorious. https://gitorious.org/fetchmail/ The comments say: THEORY: How to parse RFC822 headers in C. This is not a fully conformant implementation of RFC822 or RFC2822, but it has been in production use in a widely-deployed MTA (fetcmail) since 1996 without complaints. Really perverse combinations of quoting and commenting could break it. good luck! Chris -- Chris Samuel : http://www.csamuel.org/ : Melbourne, VIC This email may come with a PGP signature as a file. Do not panic. For more info see: http://en.wikipedia.org/wiki/OpenPGP