🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.headers
Article #87

Re: Public domain RFC822 header parsing code?

#87
From: David Herron
Date: Fri, 11 Sep 1992 17:01
27 lines
1641 bytes
> Can anybody point me to some freely available code, preferably in C,
> for parsing RFC822 headers - specifically email addresses as would
> appear in a To: header?  The completer the better.

Yes.

Look in any comp.sources.misc archives and you'll find one written
in YACC.  (posted by me many many moons ago while I was still a
junior level E-Mail hacker known to the world as `david@ms.uky.edu').

That version has BUGS ('twas before I learned that not all the
world was a Vax ;-().

A later version is in the FACES distribution.  (It was a pleasant surprise
pulling that code over and finding that YACC grammer in there...)  That
version has most/all the necessary patching to get it working right.
I don't recall where to get FACES at, but shouting at Archie would
be a good start ;-).

There's also an RFC822 parser in the IMAP distribution available from
ftp.cac.washington.edu.  Dunno how seperable it is, though.


<- David Herron <david@twg.com> (work) <david@davids.mmdf.com> (home)
<-
<- "ISO is really just another politically correct one-world fantasy
<-  of the U.N." -- Gordon McLachlan (LAN Computing, Aug 1992, p. 37)
Technical Details
Message-ID: <1992Sep11.165855.12826@twg.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!eco.twg.com!twg.com!news

Show Full Headers
Complete Article Headers
Newsgroups: comp.mail.headers
Path: arc1-ca.pugleaf.net!sparky!uunet!eco.twg.com!twg.com!news
From: "David Herron" <david@twg.com>
Subject: Re: Public domain RFC822 header parsing code?
Message-ID: <1992Sep11.165855.12826@twg.com>
Sensitivity: Personal
Encoding:  22 TEXT , 4 TEXT 
Sender: news@twg.com (USENET News System)
Conversion: Prohibited
Organization: The Wollongong Group, Inc., Palo Alto, CA
Conversion-With-Loss: Prohibited
Date: Fri, 11 Sep 1992 17:01:18 GMT
Lines: 27