I need to resend messages from dead.letters
Doug Hardie
bc979 at lafn.org
Tue Jan 13 07:47:42 PST 2004
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
More information about the freebsd-questions
mailing list