extracting data from mail?

B

Bil Kleb

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,
 
B

Bil Kleb

Bil said:
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,
 
A

Aredridel

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...

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top