Extracting data from mail?

I have a large mail folder full of data.

I would like to extract data from messages
(I can craft a regular expression to find
the data).

The question is should I be using some
Ruby library that can parse the mail format
because I also want the date of the message?

Or should I simply split on "From: ... ", and
then iterate on each message...

Thanks,

···

--
Bil Kleb, Hampton, Virginia
http://fun3d.larc.nasa.gov

You might try the TMail package -- it has a "Port" (reader library) for
mbox format, which is likely what your mail folder is in.

Ari

···

On Tue, 2005-02-08 at 21:35 +0900, Bil Kleb wrote:

I have a large mail folder full of data.

I would like to extract data from messages
(I can craft a regular expression to find
the data).

The question is should I be using some
Ruby library that can parse the mail format
because I also want the date of the message?

Or should I simply split on "From: ... ", and
then iterate on each message...

Bil Kleb wrote:

I have a large mail folder full of data.

I would like to extract data from messages

The question is should I be using some
Ruby library that can parse the mail format
because I also want the date of the message?

Nevermind, just found standard library, mailread.

Regards,

···

--
Bil Kleb, Hampton, Virginia
http://fun3d.larc.nasa.gov