Re: I need to resend messages from dead.letters
On Mon, Jan 12, 2004 at 07:23:20PM -0800, Doug Hardie wrote: There was a problem last night with my mail server and a bunch of mail went into the dead.letters mailbox rather than being sent. I have that mailbox and need a way to send all of those messages. I split them out into individual files, but there are just too many to send by hand. Is there a way to cause them all to be resent? Look at the -f option to the mail command - see the manpage for mail(1) for more info. -- Jez Hancock - System Administrator / PHP Developer http://munk.nu/ http://jez.hancock-family.com/ - personal weblog http://ipfwstats.sf.net/- ipfw peruser traffic logging ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: I need to resend messages from dead.letters
On Tue, Jan 13, 2004 at 09:24:21AM +, Jez Hancock wrote: On Mon, Jan 12, 2004 at 07:23:20PM -0800, Doug Hardie wrote: There was a problem last night with my mail server and a bunch of mail went into the dead.letters mailbox rather than being sent. I have that mailbox and need a way to send all of those messages. I split them out into individual files, but there are just too many to send by hand. Is there a way to cause them all to be resent? Look at the -f option to the mail command - see the manpage for mail(1) for more info. Hmmm.. I don't think that's quite what the OP wanted. One solution is to install the procmail port (ports: mail/procmail) which contains a stunningly useful utility called formail(1). Amongst formail's many talents is the ability to split up a mbox format mailbox into individual messages and pipe each into a program. So in order to resend all of the messages in your dead.letter you could try: % formail -s /usr/sbin/sendmail -v -t -oiee dead.letter Or to split up the dead.letter mailbox into individual numbered messages: % formail -s /bin/sh -c 'cat msg.$FILENO' dead.letter and you can pipe each message into sendmail as above to re-send it: % /usr/sbin/sendmail -v -t -oiee msg.999 Nb. be careful when doing this sort of thing, or you'll spray e-mails all over the place and make yourself quite unpopular. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK pgp0.pgp Description: PGP signature
Re: I need to resend messages from dead.letters
On Jan 13, 2004, at 04:18, Matthew Seaman wrote: On Tue, Jan 13, 2004 at 09:24:21AM +, Jez Hancock wrote: On Mon, Jan 12, 2004 at 07:23:20PM -0800, Doug Hardie wrote: There was a problem last night with my mail server and a bunch of mail went into the dead.letters mailbox rather than being sent. I have that mailbox and need a way to send all of those messages. I split them out into individual files, but there are just too many to send by hand. Is there a way to cause them all to be resent? Or to split up the dead.letter mailbox into individual numbered messages: % formail -s /bin/sh -c 'cat msg.$FILENO' dead.letter and you can pipe each message into sendmail as above to re-send it: % /usr/sbin/sendmail -v -t -oiee msg.999 Nb. be careful when doing this sort of thing, or you'll spray e-mails all over the place and make yourself quite unpopular. Thanks. I had missed the -t option to sendmail. That does exactly what I needed. -- Doug ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
I need to resend messages from dead.letters
There was a problem last night with my mail server and a bunch of mail went into the dead.letters mailbox rather than being sent. I have that mailbox and need a way to send all of those messages. I split them out into individual files, but there are just too many to send by hand. Is there a way to cause them all to be resent? ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]