Paul Jakma wrote:
>> what's the best way to resend mail that is already delivered?
>> ie there are a good few users who've recently moved, but they still
> have email lying in /var/spool/mail.
>> now i've discovered "formail +1 -ds command" which will seemingly take
> a mailbox on stdin and split it into individual messages and pipe them
> to 'command'. but i'm missing what command should be... mail doesn't
> cut it, cause it acts as if the piped data is just the message. i need
> something that will take a complete message and email it so it appears
> to be from the "From:" in the header, and to the "To: in the header.
>> any ideas?
if you can wrap a small 'helo/rcpt' section in front of each one,
cat myfile | helowrapper | sendmail -bs
might be what you're after.
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!