Thread View: comp.mail.headers
2 messages
2 total messages
Started by David Herron
Fri, 11 Sep 1992 17:01
Re: Public domain RFC822 header parsing code?
Author: David Herron
Date: Fri, 11 Sep 1992 17:01
Date: Fri, 11 Sep 1992 17:01
27 lines
1641 bytes
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)
Re: Public domain RFC822 header parsing code?
Author: Steve Bacher
Date: Sat, 12 Sep 1992 22:41
Date: Sat, 12 Sep 1992 22:41
22 lines
1314 bytes
1314 bytes
In article <1992Sep11.165855.12826@twg.com>, "David Herron" <david@twg.com> writes: >> 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'). ... Er - I guess I should have (also) said, "preferably some that DOESN'T use lex or yacc"? Y'see, I am hoping to use this in a (gasp!) IBM mainframe email system, among other things... -- Steve Bacher (Batchman) Draper Laboratory Internet: seb@draper.com Cambridge, MA, USA
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads