Actually I found this:

cat <mbox> |formail -s mail

That worked quite nicely.

-gc

David Bandel wrote:

> 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


_____________________________________________
tmda-users mailing list (tmda-users@tmda.net)
http://tmda.net/lists/listinfo/tmda-users

Reply via email to