Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: Mailbox spliting and storing each message!

by mpeppler (Vicar)
on Dec 13, 2004 at 06:58 UTC ( [id://414324]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Mailbox spliting and storing each message!
in thread Mailbox spliting and storing each message!

If I read your original post correctly you have a file in Unix "mbox" format, where each message starts with something like
From MAILER-DAEMON@gw.peppler.org Thu Sep 16 17:29:10 2004 Return-Path: <MAILER-DAEMON@gw.peppler.org> Received: from ntexchsrv.ilstmd.ins (ntexchsrv.ismis.com [12.2.26.87]) by gw.peppler.org (8.12.10/8.12.10) with ESMTP id i8GLT9n60041 +56 for <junk@peppler.org>; Thu, 16 Sep 2004 17:29:09 -0400 From: postmaster@ismie.com To: junk@peppler.org Date: Thu, 16 Sep 2004 16:29:45 -0500 ... rest of headers ...
AFAIK this is what Mail::Box::Mbox and Mail::MboxParser are built to handle.

You can also build your own parser, of course, but you have to be careful not to get tripped up by any "From " strings that might be embedded in messages...

Michael Michael

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://414324]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-25 21:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found