Your post interested me. A few thoughts, if i may, that I hope will repay the interest by at least giving you a place to bounce from.
First of all, if you have to code this yourself, take a look at the Mail::* modules, which should help somewhat in reducing the amount of custom code you have to write.
Next, if you are not already doing so, I would, if possible, create a user that the mailing list was sent as, or if possible, set a custom header in the message (several mailing lists I am on set a Return-Path header, or something similar, with a value related to my subscription to the list). Using this, you could use one of the filtering/sorting mechanisms available as part of several of the Mail::* modules (mentioned above) to act based on seeing that header in a message to either the user the mailing list sent as (root or another).
Hope that helps, and hope others will also contribute useful ideas to you as well.
In reply to Re: Email Parsing of mail files for e-mail errors
by atcroft
in thread Email Parsing of mail files for e-mail errors
by notbob
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |