Honorable Monks,

I have been reading thru the Monastery, searching CPAN, and have downloaded almost every Mail box or mail parsing module I could find.

All I need to do is rip thru a UNIX mailbox, grab all the mail, check for atttachments, then based on a code in the subject line, drop the baby into the right sandbox.

My issue is I can't make heads or tails out of the <rant on> extremely poor PODs <rant off>. Nothing in the documentation is clear at all. I've spent the past 3 days and not 1 single line of code that can be used.

I believe that the "best" module to use is MIME::Tools; however I can't seem to generate anything for more than the first mail message - the others just sit there untouched. How do I rip through a mailbox using this module?

Another question - can I delete the message from the mailbox after I am finished with it?

I've added seriously to the grey hair on my head over this one! In the time I spent looking for a module and then getting it to work I could have hacked this myself. grrrrrr.

Any and all help is more that greatly appreciated. Much Thanks in advance for any help anyone can be.


In reply to UNIX Mail Box and Mail Parsing by draconis

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.