Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jan 2004 07:47:35 -0800
From:      Doug Hardie <bc979@lafn.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: I need to resend messages from dead.letters
Message-ID:  <CECB495C-45DF-11D8-98C2-000393681B06@lafn.org>
In-Reply-To: <20040113121841.GC23956@happy-idiot-talk.infracaninophile.co.uk>
References:  <63340-22004121311314124@M2W045.mail2web.com> <D6028309-4577-11D8-98C2-000393681B06@lafn.org> <20040113092421.GA73594@users.munk.nu> <20040113121841.GC23956@happy-idiot-talk.infracaninophile.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Jan 13, 2004, at 04:18, Matthew Seaman wrote:

> On Tue, Jan 13, 2004 at 09:24:21AM +0000, 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CECB495C-45DF-11D8-98C2-000393681B06>