rewriting the getname() function again

---------

From: Daniel Stenberg (dast@sth.frontec.se)
Date: Tue Apr 13 1999 - 10:28:47 CDT


Hi

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:

** IN: shows the header it parses right now
FOUND: if () or <> words were found
USE: explains how a particular part was found

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/~dast
   ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol




---------

This archive was generated by hypermail 2.1.5.