From owner-freebsd-questions Sun Aug 19 19:24:34 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail001.syd.optusnet.com.au (mail001.syd.optusnet.com.au [203.2.75.244]) by hub.freebsd.org (Postfix) with ESMTP id 25F4E37B403 for ; Sun, 19 Aug 2001 19:24:24 -0700 (PDT) (envelope-from shaun@pcuse.com) Received: from pcuse.com (adlax2-139.dialup.optusnet.com.au [198.142.52.139]) by mail001.syd.optusnet.com.au (8.11.1/8.11.1) with ESMTP id f7K2OK615371 for ; Mon, 20 Aug 2001 12:24:20 +1000 Received: (from shaun@localhost) by pcuse.com (8.11.3/8.11.3) id f7K2QYc22033 for questions@FreeBSD.ORG; Mon, 20 Aug 2001 11:56:34 +0930 (CST) (envelope-from shaun) Date: Mon, 20 Aug 2001 11:56:33 +0930 From: Shaun Branden To: questions@FreeBSD.ORG Subject: Re: How do I filer Email or mbox File? Message-ID: <20010820115632.A21394@dingoblue.net.au> Mail-Followup-To: Shaun Branden , questions@FreeBSD.ORG References: <20010711113051.S16127-100000@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010711113051.S16127-100000@localhost>; from bear@buug.homeip.net on Wed, Jul 11, 2001 at 11:41:34AM -0700 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 Wed, Jul 11, 2001 at 11:41:34AM -0700, Joseph Garcia wrote: > Hey all! > > I have been using procmail to filter my incoming email using some rules > that I found on www.freebsddiary.org website. So far the rules work > perfectly for incoming mail. Although, I have email in my mbox file that > I want certain email extracted and put into a specific folder. I thought > that maybe creating the rule in my .procmailrc and cat'ing the mbox file > through procmail would do the trick, but it didn't. So what would be the > right way to filter out the email from my box file into another file? From the procmail FAQ: Q: I have a recipe which I would like to run on many messages which are already in one big happy mailbox file. How can I tell Procmail to not treat them all as a single long message? A: You don't, you use formail to split it it back into separate messages and feed each into its own little procmail process. formail -ns procmail experiments.rc < test.mbox (This will use the recipes in the rc file experiments.rc.) Shaun -- Shaun Branden, email: shaun@pcuse.com It's a damn poor mind icq: 10469563, homepage: www.pcuse.com that can only think of public key www.pcuse.com/shaun/key.txt one way to spell a word Computerbank SA: www.linunix.com/cbsa -- Andrew Jackson To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message