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
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.