I'm aware that the name/email parser in hypermail is still very lame. I wrote a new one a few versions ago, but I definitely had the wrong approach and just made another bad and buggy implementation.
I attach two files for test and comments. One is my test-parser (C source) and the other one is a file filled with From:-lines that may appear.
I would be very interested to hear from you if you can get it to fail on a From: line that may appear.
If you have improvements or have a better parser, feel free to submit changes, suggestions and ideas!
The fromparse.c program outputs a few different lines. They use prefixes that mean:
EMAIL: the parsed email address field COMMENT: the parsed comment (name) field --FAILED: if you see this, the parser failed to get a comment or email! -- Daniel Stenberg - http://www.fts.frontec.se/~dastech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
This archive was generated by hypermail 2.3.0 : Sat 13 Mar 2010 03:46:11 AM GMT GMT