Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Mailbox spliting and storing each message!

by mpeppler (Vicar)
on Dec 12, 2004 at 19:28 UTC ( [id://414252]=note: print w/replies, xml ) Need Help??


in reply to Mailbox spliting and storing each message!

Consider using something like Mail::Box::Mbox to read the file.

Michael

  • Comment on Re: Mailbox spliting and storing each message!

Replies are listed 'Best First'.
Re^2: Mailbox spliting and storing each message!
by cookiez (Initiate) on Dec 12, 2004 at 19:37 UTC
    Hi I was told that Mail::Box does not handle this type of mailbox, that I would first have to split each email and put
    each one in it own file before I could use it! Is this not correct? If it isn't I will take you advise...

    Thanks
    Cookie
      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://414252]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-23 10:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found