Version française
Home     About     Download     Resources     Contact us    
Browse thread
OCaml mentioned in BraveGNUWorld
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Oliver Bandel <oliver@f...>
Subject: Re: [Caml-list] OCaml mentioned in BraveGNUWorld
On Thu, Mar 17, 2005 at 02:55:37AM +0100, Oliver Bandel wrote:
[...]
> Examples of usage:
> 
> let filename = "sent-mail.experimental" in (* set mbox-filename *)
> let input_mbox = Mbox.read filename in     (* reading mbox-file *)
> let rematcher = Mbox.match_body_regexp ".*ocaml" Mbox.NoCase  (* create matcher-function *)
> in
>                (* next line: splitting the mbox into matching/nonmatching mails *)
>   let result = Mbox.partition_rename rematcher mb2 "OCAML-matched" "OCAML-NON-MATCHED" in
                                                 ^^^ 
                                                    \--- "input_mbox"
                                                 (copy/paste/change error)

Or I should have written:

 let mb2 = Mbox.read filename in     (* reading mbox-file *)

in the above code...


Ciao,
   Oliver