Hi Roger,

I have written a simple email address capture program, without using any Mail:* modules. Provided that the Emails do not have the "From: " line in the subjects, the following should work fine.

Yes, it did, thanks, and I was surprised at how out of date the distribution list is. Considering the mail boxes are more than 100Mb, perl was very quick to do the job, less than 30 seconds I'd say. No doubt it will take marginally longer to look at all the records (rather than just the "From" lines); I'd need to do this because sometimes people advise of new addresses in the body portion. I put it in a sub as you suggested. Your interim solution is ideal for my purposes, and helped me learn how to parse through files, looking for specifics (I find the Windows 'find' quite frustrating, as it won't look for multiple strings).

Thanks,

Peter


In reply to Re: Parsing Pegasus email boxes by peterr
in thread Parsing Pegasus email boxes by peterr

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.