From owner-freebsd-questions@FreeBSD.ORG Thu Nov 30 17:22:07 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5499D16A4FB for ; Thu, 30 Nov 2006 17:22:07 +0000 (UTC) (envelope-from howie@thingy.com) Received: from post1.network-i.net (antigua.network-i.net [212.21.121.181]) by mx1.FreeBSD.org (Postfix) with SMTP id A01B543CF1 for ; Thu, 30 Nov 2006 17:15:04 +0000 (GMT) (envelope-from howie@thingy.com) Received: (qmail 52741 invoked from network); 30 Nov 2006 17:15:04 -0000 Received: from unknown (HELO ?10.1.1.189?) (212.21.99.52) by post1.network-i.net with SMTP; 30 Nov 2006 17:15:04 -0000 Message-ID: <456F1196.3010607@thingy.com> Date: Thu, 30 Nov 2006 17:15:02 +0000 From: Howard Jones User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: David Banning References: <20061130170512.GA67565@skytracker.ca> In-Reply-To: <20061130170512.GA67565@skytracker.ca> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: questions@freebsd.org Subject: Re: question on batch email sending X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2006 17:22:07 -0000 David Banning wrote: > I have a standard mailbox with around 40 messages. I want to be able > to just send them all to someone, the same person, not as an > attachment but as individual emails. I want to do something like; > > cat /var/mail/frank | someprogram franksnewaddress@franksdomain.com > > So that Frank can just get it into his regular inbox. I realize that > I could just ask Frank to pop it off the server but then he would have > to setup for just one occasion. Is there a way to do what I want? > Take a look at formail, which comes as part of procmail. It lets you iterate through messages in an mbox-formatted mailbox in various ways. In fact, here's a thread about it: http://www.mhonarc.org/archive/html/procmail/2002-06/msg00019.html Have fun! Howie