From owner-freebsd-questions Thu Dec 6 17: 3:41 2001 Delivered-To: freebsd-questions@freebsd.org Received: from snipe.prod.itd.earthlink.net (snipe.mail.pas.earthlink.net [207.217.120.62]) by hub.freebsd.org (Postfix) with ESMTP id 6246737B417 for ; Thu, 6 Dec 2001 17:03:36 -0800 (PST) Received: from dialup-209.245.134.25.dial1.sanjose1.level3.net ([209.245.134.25] helo=blossom.cjclark.org) by snipe.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16C9QF-0005Cs-00; Thu, 06 Dec 2001 17:03:29 -0800 Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.3) id fB7137Q10972; Thu, 6 Dec 2001 17:03:07 -0800 (PST) (envelope-from cjc) Date: Thu, 6 Dec 2001 17:02:52 -0800 From: "Crist J . Clark" To: Wayne Pascoe Cc: freebsd-questions@FreeBSD.ORG Subject: Re: reprocessing mail with procmail Message-ID: <20011206170252.K8975@blossom.cjclark.org> References: <86lmggui8n.fsf@pan.home.penguinpowered.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <86lmggui8n.fsf@pan.home.penguinpowered.org.uk>; from freebsd@molemanarmy.com on Thu, Dec 06, 2001 at 09:54:48PM +0000 X-URL: http://people.freebsd.org/~cjc/ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Dec 06, 2001 at 09:54:48PM +0000, Wayne Pascoe wrote: > Hi all, > > I have a batch of mail in /var/mail/user that I want to process > into multiple mail boxes based on the To field. [snip] > Running > procmail -d user < /var/mail/user > > just doubles the size of the file /var/mail/user > > Any ideas what I'm doing wrong and how to fix it ? procmail(1) expects to get messages _one at a time._ It does not do operations on whole mailboxes. However, a tool do do the splitting comes with procmail(1) called formail(1). You want, $ formail -s procmail -d user < /var/mail/user -- "It's always funny until someone gets hurt. Then it's hilarious." Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message