Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Breaking apart MBOX

Reply
Thread Tools

Breaking apart MBOX

 
 
MJackson
Guest
Posts: n/a
 
      02-19-2004
I'm new to perl. I need to read in the mailbox (mbox) and break it apart
into seperate emails. Of course each email may be different lengths. Each
email starts with From, but there are other lines in the email starting with
From: (notice the colon). So, an email starts at From and ends at the
character prior to the next From.

I then need to store each email off into it's own file, numbered such as
00001, 00002, etc. there will be very many of these.

Any ideas.

Any help greatly appreciated.
Michael


 
Reply With Quote
 
 
 
 
Gunnar Hjalmarsson
Guest
Posts: n/a
 
      02-19-2004
MJackson wrote:
> I'm new to perl. I need to read in the mailbox (mbox) and break it
> apart into seperate emails. Of course each email may be different
> lengths. Each email starts with From, but there are other lines in
> the email starting with From: (notice the colon). So, an email
> starts at From and ends at the character prior to the next From.
>
> I then need to store each email off into it's own file, numbered
> such as 00001, 00002, etc. there will be very many of these.


Check out the read_mbox() function in the CPAN module Mail::Util.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mailbox.mbox not locking mbox properly tinnews@isbd.co.uk Python 3 08-27-2010 08:09 PM
Breaking apart arrays for arguments? Kyle Schmitt Ruby 8 09-24-2008 08:03 PM
Breaking strings apart noridotjabi@gmail.com C Programming 7 05-25-2006 10:35 PM
Looking for a breaking news rss feed that really contains breaking news Amy XML 0 02-22-2005 06:31 PM
Connect 2 Locations - 50 yards apart - w/good line of sight JP Wireless Networking 2 01-11-2005 08:17 PM



Advertisments