Date: Mon, 20 Aug 2001 11:56:33 +0930 From: Shaun Branden <shaun@pcuse.com> To: questions@FreeBSD.ORG Subject: Re: How do I filer Email or mbox File? Message-ID: <20010820115632.A21394@dingoblue.net.au> In-Reply-To: <20010711113051.S16127-100000@localhost>; from bear@buug.homeip.net on Wed, Jul 11, 2001 at 11:41:34AM -0700 References: <20010711113051.S16127-100000@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010820115632.A21394>