Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
mboxlib reloaded ;-)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] mboxlib reloaded ;-)
On Sat, Apr 28, 2007 at 04:18:12PM +0200, Oliver Bandel wrote:
> The main intend of the lib (ys, a library, not a certain
> application) was to have a tool at hand, that makes
> complex things achievable easy.
>      let mymatch = match_header_regexp ".*richard" NoCase
> Opens the mbox-file "MB1" and writes
> all mails with the "richard"-string in the header
> to the mbox-file "MB1.ready".

There's a whole lots of issues that this doesn't cover.  For example,
what about internationalised headers using the (rather crazy) syntax
defined in RFC 2047?

>From the RFC:

   From: =?US-ASCII?Q?Keith_Moore?= <>
   To: =?ISO-8859-1?Q?Keld_J=F8rn_Simonsen?= <>
   CC: =?ISO-8859-1?Q?Andr=E9?= Pirard <>
   Subject: =?ISO-8859-1?B?SWYgeW91IGNhbiByZWFkIHRoaXMgeW8=?=


Richard Jones
Red Hat