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?
sendmail should do the trick, the only niggly bit is that unless you run
as root and supply the correct argument to -f, the headers will contain
a line about the From line possibly being faked but it'll do the job I
think,
Fergal
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!