I'm sorry to disagree, but - no, you can't.

Have you tried?

$ perl mailbox_parser.pl /home/zwon/Mail/FreeBSD-security | head -n 20 00000 => 0000000000 => FreeBSD Security Advisory FreeBSD-SA-04:03.jail 00001 => 0000007411 => [FreeBSD-Announce] FreeBSD Security Advisory Fr +eeBSD-SA-04:04.tcp 00002 => 0000015717 => FreeBSD Security Advisory FreeBSD-SA-04:04.tcp 00003 => 0000024280 => [FreeBSD-Announce] FreeBSD Security Advisory Fr +eeBSD-SA-04:05.openssl 00004 => 0000032992 => FreeBSD Security Advisory FreeBSD-SA-04:05.open +ssl 00005 => 0000041959 => FreeBSD Security Advisory FreeBSD-SA-04:06.ipv6 00006 => 0000049688 => FreeBSD Security Advisory FreeBSD-SA-04:07.cvs 00007 => 0000058113 => FreeBSD Security Advisory FreeBSD-SA-04:08.heim +dal 00008 => 0000069503 => FreeBSD Security Advisory FreeBSD-SA-04:09.kadm +ind 00009 => 0000077885 => FreeBSD Security Advisory FreeBSD-SA-04:10.cvs 00010 => 0000086754 => FreeBSD Security Advisory FreeBSD-SA-04:11.msyn +c 00011 => 0000094967 => FreeBSD Security Advisory FreeBSD-SA-04:12.jail +route 00012 => 0000102596 => FreeBSD Security Advisory FreeBSD-SA-04:13.linu +x 00013 => 0000112415 => FreeBSD Security Advisory FreeBSD-SA-04:14.cvs 00014 => 0000123949 => FreeBSD Security Advisory FreeBSD-SA-04:15.sysc +ons 00015 => 0000131204 => FreeBSD Security Advisory FreeBSD-SA-04:16.fetc +h 00016 => 0000141362 => FreeBSD Security Advisory FreeBSD-SA-04:17.proc +fs 00017 => 0000151053 => FreeBSD Security Advisory FreeBSD-SA-05:01.teln +et 00018 => 0000160935 => FreeBSD Security Advisory FreeBSD-SA-05:02.send +file 00019 => 0000170195 => FreeBSD Security Advisory FreeBSD-SA-05:03.amd6 +4

I just replaced 'mbox' with $ARGV[0] in my example.

PS: note, that cache is not the same as the index

PPS: and you should have Mail::Mbox::MessageParser::Cache installed in order cache to be created, don't know why it is not mentioned in Mail::MboxParser documentation


In reply to Re^5: Mail::MboxParser pegs the CPU by zwon
in thread Mail::MboxParser pegs the CPU by oko1

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.