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