Date: Thu, 6 Dec 2001 17:02:52 -0800 From: "Crist J . Clark" <cjc@FreeBSD.ORG> To: Wayne Pascoe <freebsd@molemanarmy.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: reprocessing mail with procmail Message-ID: <20011206170252.K8975@blossom.cjclark.org> In-Reply-To: <86lmggui8n.fsf@pan.home.penguinpowered.org.uk>; from freebsd@molemanarmy.com on Thu, Dec 06, 2001 at 09:54:48PM %2B0000 References: <86lmggui8n.fsf@pan.home.penguinpowered.org.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011206170252.K8975>
