[comp.mail.misc] Anyone have a lex grammer for RFC822 headers?

lyndon@ncc.UUCP (Lyndon Nerenberg) (10/07/87)

I think the subject says it all. It doesn't have to be polished.
I'm basically interested in seeing how people deal with the many
variations in the To: header.

--lyndon
{alberta,pyramid,uwvax}!ncc!lyndon

david@ms.uky.edu (David Herron -- Resident E-mail Hack) (10/08/87)

Well.  I have one written in YACC, not Lex.  Will that do?

It came to me from Daniel Karrenberg <dfk@unido.uucp>, and he got it
from Bill Nesheim <bill%bullwinkle@crnlcs.bitnet>.  It includes a note
from Bill saying to give it to whoever wants it ... so, I'm
offering...

From what I've gathered from looking at it, it does a good job of
parsing RFC-822.  But then I've had it for a year and a half and
haven't done anything much with it.

It's possible either one of the above two people have done something
more with the code.   I dunno.

If enough people ask for it I can post it to somewhere.  Probably
comp.sources.misc since it doesn't quite match the standards that r$
wants to keep.  If you're on the internet you can ftp anonymously to
"{a,g,e}.ms.uky.edu" and look in "archive/wrk/Network/Mail/Rfc.822" for
the sources.  (After hours is preferable, and access from "a" is preferable
since the files are physically stored on "a").

[ We have a large pile of software which hasn't been sorted through
  which people are welcome to look through ... If you have problems
  connecting the address is [128.163.128.{1,5,7}] (1 is for "a", 5
  for "e", and 7 for "e" ... If you still have problems send me mail
  describing the problem].


-- 
<---- David Herron,  Local E-Mail Hack,  david@ms.uky.edu, david@ms.uky.csnet
<----                    {rutgers,uunet,cbosgd}!ukma!david, david@UKMA.BITNET
<---- I thought that time was this neat invention that kept everything
<---- from happening at once.  Why doesn't this work in practice?

lubich@ethz.UUCP (Hannes Lubich) (10/09/87)

Yeah, I definitely vote for posting it to the world, it was already
asked for sooooooo many times :-))))))
	--HaL
-- 
~ UUCP/Usenet   :   {known world}!seismo!mcvax!cernvax!ethz!lubich
~ CSNET         :   lubich%ifi.ethz.chunet@relay.cs.net
~ ARPA          :   lubich%ifi.ethz.chunet@csnet-relay.arpa                
The usual disclaimer : No, it wasn't me, somebody must have used my account.

tower@bu-cs.BU.EDU (Leonard H. Tower Jr.) (10/17/87)

Home: 36 Porter Street, Somerville, MA  02143, USA  +1 (617) 623-7739


GNU Emacs has one written in its Lisp. File ../lisp/rfc822.el

;; Hairy rfc822 parser for mail and news and suchlike
;; Copyright (C) 1986, 1987 Free Software Foundation, Inc.
;; Author Richard Mlynarik.

Further information on Project GNU and obtaining GNU software is
obtainable from the address:
	<gnu@prep.ai.mit.edu>  aka  ...!ucbvax!prep.ai.mit.edu!gnu

enjoy -len