From: Tim Bradshaw
Subject: rfc822 parser?
Date: 
Message-ID: <ey31z2cnvp7.fsf@cley.com>
Does anyone know of a (portable-ish-cl) rfc822 parser?  I've not been
able to find one, but I thought i'd check before wasting effort.

Thanks

--tim

From: Paolo Amoroso
Subject: Re: rfc822 parser?
Date: 
Message-ID: <EvY8OSx68bB4bFlfrhJUoEJhQ2Ox@4ax.com>
On 05 Jun 2000 13:44:52 +0100, Tim Bradshaw <···@cley.com> wrote:

> Does anyone know of a (portable-ish-cl) rfc822 parser?  I've not been
> able to find one, but I thought i'd check before wasting effort.

If I get things right, Erik Naggum wrote something similar that is shipped
with the Emacs distribution. Grep the string Naggum in the ELisp source
directory. Of course it's ELisp, but it may be a useful starting point.


Paolo
-- 
EncyCMUCLopedia * Extensive collection of CMU Common Lisp documentation
http://cvs2.cons.org:8000/cmucl/doc/EncyCMUCLopedia/
From: Tim Bradshaw
Subject: Re: rfc822 parser?
Date: 
Message-ID: <ey3g0qqap1i.fsf@cley.com>
* Paolo Amoroso wrote:
> On 05 Jun 2000 13:44:52 +0100, Tim Bradshaw <···@cley.com> wrote:
>> Does anyone know of a (portable-ish-cl) rfc822 parser?  I've not been
>> able to find one, but I thought i'd check before wasting effort.

> If I get things right, Erik Naggum wrote something similar that is shipped
> with the Emacs distribution. Grep the string Naggum in the ELisp source
> directory. Of course it's ELisp, but it may be a useful starting point.

Yes, there are at least 2 mail-header parsers -- mail-extr.el and
rfc822.el, as well as (I think) older & more rudimentary ones which
people used to use when rfc822.el was considered too slow.
Unfortunately they don't really help from the point of view of writing
a CL one because elisp has so much specialist buffer/string hacking
stuff.

Actually one option is to use emacs to do the parsing and spit te
results at a lisp, and I'm considering that -- it has to be better
than perl!

--tim
From: Jochen Schmidt
Subject: Re: rfc822 parser?
Date: 
Message-ID: <39457131.23848988@gmx.de>
Tim Bradshaw wrote:
> 
> * Paolo Amoroso wrote:
> > On 05 Jun 2000 13:44:52 +0100, Tim Bradshaw <···@cley.com> wrote:
> >> Does anyone know of a (portable-ish-cl) rfc822 parser?  I've not been
> >> able to find one, but I thought i'd check before wasting effort.
> 
> > If I get things right, Erik Naggum wrote something similar that is shipped
> > with the Emacs distribution. Grep the string Naggum in the ELisp source
> > directory. Of course it's ELisp, but it may be a useful starting point.
> 
> Yes, there are at least 2 mail-header parsers -- mail-extr.el and
> rfc822.el, as well as (I think) older & more rudimentary ones which
> people used to use when rfc822.el was considered too slow.
> Unfortunately they don't really help from the point of view of writing
> a CL one because elisp has so much specialist buffer/string hacking
> stuff.
> 
> Actually one option is to use emacs to do the parsing and spit te
> results at a lisp, and I'm considering that -- it has to be better
> than perl!

The python rfc822 parser could be a good starting point.
I've looked at it and it seems pretty clean.

After my next CS exams in a few weeks I will sit down and
look if I can port the pyhton-rfc822 parser to CL.

Yesterday I've already ported the POP3 module of phyton and
I think I will also begin to port the FTP, NNTP, HTTP, MIME, BASE64
UUEN/DECODE and SMTP modules. 

I cannot promise you that this all will happen in a few days but
be ensured that all work will be published under a BSD-ish
license.

-- 
cya,
Jochen Schmidt
···@dataheaven.de
http://www.dataheaven.de