From: Andrew Kelly Subject: Re: procmail forwarding to other user Date: Thu, 10 Apr 2003 12:03:11 +0200 Sender: linux-admin-owner@vger.kernel.org Message-ID: <3E95415F.3295EE65@transparency.org> References: <20030410092339.GI682@fede2.tumsan.fi> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: List-Id: Content-Type: text/plain; charset="us-ascii" To: urgrue Cc: linux-admin@vger.kernel.org urgrue wrote: > > what i'm trying to do here is: delete those messages which contain > "orders received", and forward the ones that dont, to another user on > my system. doesnt work: the orders received messages are indeed > correctly deleted, but the others simply arrive in my default mailbox. > could someone correct my config: > > :0 > * ^Subject.*LSN game.*orders received.* > /dev/null > * ^Subject.*LSN game.* > ! fredgamer@tumsan.fi > :0 .....snip snip...various other recipes follow..... In a procmail recipe, you may only have 1 (one) action line. If you look at the above you'll see that you begin a recipe, list one condition statement and then an action which applies to the condition above it. THEN you list another condition and action as part of the same recipe, which is incorrect. You need to either make them separate recipes or to build a nested block. Andrew