Declan Grady writes:
> Hi,
> I have a user who deleted all the mail I sent them !
> I have my mail archived in a load of mbox files, so I need pick out the
> mail to this user and resend it.
>> I know formmail is my friend, but it so long since I used it I forget
> how to do it !
>> I want to run all my mbox files through formail with one rule to match
> the TO email address, and resend it.
for mbox in $list ; do
formail -s procmail file.rc < $mbox
done
where file.rc is the procmail rc file with the rule.
I'd probably experiment with a small mbox and rc file that dumps mails to
a file before letting it loose on an unsuspecting recipient ...
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!