[cvs] bogofilter/src lexer.c,1.26,1.27 lexer_v3.l,1.16,1.17

Matthias Andree matthias.andree at gmx.de
Mon May 19 23:05:04 CEST 2003


relson at users.sourceforge.net writes:

> Update of /cvsroot/bogofilter/bogofilter/src
> In directory sc8-pr-cvs1:/tmp/cvs-serv12249
>
> Modified Files:
> 	lexer.c lexer_v3.l 
> Log Message:
> Add basic support for RMAIL mailboxes.

BTW, this code is bogus. I stared for a short moment at rmail.el, and
these BABYL format mailboxes (as used by RMAIL) don't delimit their mail
by "header" lines, but they use 0x0a 0x1f as delimiter, optionally
followed by 0x0c (I don't read Lisp well enough).

Also, BABYL seems to store the coding system set, the original header,
then *** EOOH ***, then a stripped-down header (with Received: headers
and such cruft removed) and a body in Emacs MULE format. We can't read
those with reasonable effort; we'd somehow need to decode the body and
strip the copy of the header, the summary line and all that.

The easiest thing to do is refuse to split RMAIL, and have the user
convert RMAIL to mbox (we can read that).

The best (and canonical) bet is (worksforme with GNU emacs 21):
$ emacs --no-site-file --batch -f batch-unrmail RMAIL

This writes a RMAIL.mail file in mbox format which we can process.

-- 
Matthias Andree




More information about the bogofilter-dev mailing list