🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.misc
Article #3274

RFC822 parser library?

#3274
From: Tor Lillqvist
Date: Wed, 23 Dec 1992 21:43
22 lines
1499 bytes
I am looking for a parser library for RFC 822 headers.  The interface
could be something like this:

	1) First call some function that parses the headers from a
text stream (fil, buffer, whatever), and stores it in some internal
data structure. 

	2) After this, you can call funtions to enumerate and retrieve
what headers were present.  The headers are available both in "raw"
form (exactly as in the text stream), and in some pre-digested form
with comments stripped, multiple recipients in a linked list, dates
converted to time_t (or perhaps struct tm), etc.

Not wanting to re-invent the wheel, is such a beast perhaps already
(freely) available?  Thanks for any pointers. Reply by both posting
(to the benefit of others, and I'm probably too busy to make a
summary), and by mail (I might forget what newsgroups I posted this
question to :-), please.
--
Tor Lillqvist,
working, but not speaking, for the Technical Research Centre of Finland,
Laboratory for Information Processing (VTT/TIK).
Technical Details
Message-ID: <TML.92Dec23214353@hemuli.tik.vtt.fi>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!tik.vtt.fi!tik.vtt.fi!tml

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!tik.vtt.fi!tik.vtt.fi!tml
From: tml@tik.vtt.fi (Tor Lillqvist)
Newsgroups: comp.mail.misc,comp.sources.wanted
Subject: RFC822 parser library?
Date: 23 Dec 92 21:43:53
Organization: Technical Research Centre of Finland, Laboratory for Information
 Processing (VTT/TIK)
Lines: 22
Distribution: world
Message-ID: <TML.92Dec23214353@hemuli.tik.vtt.fi>
NNTP-Posting-Host: tik.vtt.fi