rewriting the getname() function again

From: Daniel Stenberg <>
Date: Tue, 13 Apr 1999 17:28:47 +0200 (MET DST)
Message-ID: <>


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 -
   ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
Received on Fri 16 Apr 1999 02:48:52 PM GMT

This archive was generated by hypermail 2.3.0 : Sat 13 Mar 2010 03:46:11 AM GMT GMT