Re: Mbox Script

"David Bandel" <[email protected]>
Newsgroups gmane.mail.spam.tmda.user
Message-ID <[email protected]>
On 2/12/07, Gregory Carter <[email protected]> wrote:
> Anyone know of a way to pull messages out of a mbox format and forward
> them to the respective user?
>
> I had a fellow admin create a syntax error in the procmailrc script for
> forwarding mail.
>
> Unfortunately it just dumped the mail, but I do have a copy of all mail
> as a audit trail in the root mbox.
>
> Anyone know of a script/program to read mbox format and reforward the mail?

formail -ds procmail

should do the trick (been a while since I've used it).  Anyway, man
formail.  It's part of the procmail package.  You might also check the
procmail FAQ and/or archives.

>
> I could write a shell script to do this I guess, but I do not want to
> recreate the wheel if I do not have too.
>

Ciao,

David A. Bandel
-- 
Focus on the dream, not the competition.
            - Nemesis Air Racing Team motto
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.