Hey,
I’m pretty new to Perl and Linux but I have been given the task to migrate my companies email list server from Lyris to Sympa.
My latest task is creating summary reports for each list. So I found a package called pflogsumm that I can use to feed it any mail log file and it will output a statistical summary.
My plan is to write a pre-processing script that will split up the main mail log file into several files based on the sender email address. The thing is we have some email lists that are about 100,000+ emails and I’m worried about the performance of my pre-processing script.
The email statistics don’t have to be ready immediately after an email is sent, I can schedule a cron job to run this script every 4 hours or so. But it would be nice if I could run this as a daemon and just scrape the last few lines added (not sure if this is possible) to the file and then allocate them to the appropriate file so people could see the progress of their latest email on the fly.
I guess I just need a point the right direction or a suggestion of a particular function or tutorial so I don’t spend hours trying to do something that isn’t possible to do in the first place.
Thanks!
Jason
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.