home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / mail / misc / 4071 < prev    next >
Encoding:
Internet Message Format  |  1992-12-23  |  1.5 KB

  1. Xref: sparky comp.mail.misc:4071 comp.sources.wanted:5480
  2. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!tik.vtt.fi!tik.vtt.fi!tml
  3. From: tml@tik.vtt.fi (Tor Lillqvist)
  4. Newsgroups: comp.mail.misc,comp.sources.wanted
  5. Subject: RFC822 parser library?
  6. Date: 23 Dec 92 21:43:53
  7. Organization: Technical Research Centre of Finland, Laboratory for Information
  8.     Processing (VTT/TIK)
  9. Lines: 22
  10. Distribution: world
  11. Message-ID: <TML.92Dec23214353@hemuli.tik.vtt.fi>
  12. NNTP-Posting-Host: tik.vtt.fi
  13.  
  14. I am looking for a parser library for RFC 822 headers.  The interface
  15. could be something like this:
  16.  
  17.     1) First call some function that parses the headers from a
  18. text stream (fil, buffer, whatever), and stores it in some internal
  19. data structure. 
  20.  
  21.     2) After this, you can call funtions to enumerate and retrieve
  22. what headers were present.  The headers are available both in "raw"
  23. form (exactly as in the text stream), and in some pre-digested form
  24. with comments stripped, multiple recipients in a linked list, dates
  25. converted to time_t (or perhaps struct tm), etc.
  26.  
  27. Not wanting to re-invent the wheel, is such a beast perhaps already
  28. (freely) available?  Thanks for any pointers. Reply by both posting
  29. (to the benefit of others, and I'm probably too busy to make a
  30. summary), and by mail (I might forget what newsgroups I posted this
  31. question to :-), please.
  32. --
  33. Tor Lillqvist,
  34. working, but not speaking, for the Technical Research Centre of Finland,
  35. Laboratory for Information Processing (VTT/TIK).
  36.