From owner-freebsd-questions@FreeBSD.ORG Tue Jan 13 07:47:42 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C66416A4CE for ; Tue, 13 Jan 2004 07:47:42 -0800 (PST) Received: from zoot.lafn.org (zoot.lafn.ORG [206.117.18.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A6E143D5A for ; Tue, 13 Jan 2004 07:47:41 -0800 (PST) (envelope-from bc979@lafn.org) Received: from [10.0.1.2] (host-66-81-182-152.rev.o1.com [66.81.182.152]) (authenticated bits=0) by zoot.lafn.org (8.12.3p3/8.12.3) with ESMTP id i0DFkVwE074135 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO) for ; Tue, 13 Jan 2004 07:47:36 -0800 (PST) (envelope-from bc979@lafn.org) Mime-Version: 1.0 (Apple Message framework v609) In-Reply-To: <20040113121841.GC23956@happy-idiot-talk.infracaninophile.co.uk> References: <63340-22004121311314124@M2W045.mail2web.com> <20040113092421.GA73594@users.munk.nu> <20040113121841.GC23956@happy-idiot-talk.infracaninophile.co.uk> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Doug Hardie Date: Tue, 13 Jan 2004 07:47:35 -0800 To: freebsd-questions@freebsd.org X-Mailer: Apple Mail (2.609) Subject: Re: I need to resend messages from dead.letters X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jan 2004 15:47:42 -0000 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