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

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
  • Comment on Re^2: Mailbox spliting and storing each message!

Replies are listed 'Best First'.
Re^3: Mailbox spliting and storing each message!
by mpeppler (Vicar) on Dec 13, 2004 at 06:58 UTC
    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