LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] resending already delivered mail

[ILUG] resending already delivered mail

fergal daly fergal at esatclear.ie
Fri Nov 3 16:59:23 GMT 2000


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




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell