From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id IAA31997 for caml-red; Sat, 29 Jul 2000 08:50:24 +0200 (MET DST) Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id BAA29017 for ; Sat, 29 Jul 2000 01:11:12 +0200 (MET DST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by concorde.inria.fr (8.10.0/8.10.0) with ESMTP id e6SNBBL02243 for ; Sat, 29 Jul 2000 01:11:11 +0200 (MET DST) Received: from localhost (patrick@localhost) by fledge.watson.org (8.9.3/8.9.3) with SMTP id TAA21492; Fri, 28 Jul 2000 19:10:58 -0400 (EDT) (envelope-from patrick@watson.org) Date: Fri, 28 Jul 2000 19:10:58 -0400 (EDT) From: Patrick M Doane To: Julian Assange cc: caml-list@inria.fr Subject: Re: rfc822 / date parser, ocamllex In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: weis@pauillac.inria.fr Hi Julian, I've started work on a library to implement internet protocols. One of the modules has a lexer for mail headers as well as parsers for addresses and dates. The address parser supports all of rfc822 and also includes updates that have been in later documents. Also included are modules which implement client-side POP3 and SMTP. You can get this from: http://www.watson.org/~patrick/ Patrick On 28 Jul 2000, Julian Assange wrote: > > Does anyone know of an O'caml rfc822 address parser? > > `mmm', the O'caml web-browser has a simple date lexer, although its > not rfc822 compliant. > > The ocamllex documentation doesn't mention any method of specifying > start conditions. While I can see several different way of gaining > this functionality using sub-lexers and grouping, is this the most > elegant approach? > > Cheers, > Julian. > >