From: urgrue Subject: Re: procmail forwarding to other user solvedf Date: Thu, 10 Apr 2003 13:06:16 +0300 Sender: linux-admin-owner@vger.kernel.org Message-ID: <20030410100616.GA860@fede2.tumsan.fi> References: Mime-Version: 1.0 Content-Transfer-Encoding: 7BIT Return-path: Content-Disposition: inline In-Reply-To: ; from horia@ct2.eltop.ro on Thu, Apr 10, 2003 at 13:10:09 +0300 List-Id: Content-Type: text/plain; charset="us-ascii"; To: linux-admin@vger.kernel.org ok, duh, that should've been obvious. i simply preceded the second condition with :0, making it another recipe, and it all works as desired now. thanks, urgrue On 2003.04.10 13:10 Horia Chirculescu wrote: > > > > > > 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 > > - > > To unsubscribe from this list: send the line "unsubscribe > linux-admin" in > > the body of a message to majordomo@vger.kernel.org > > More majordomo info at http://vger.kernel.org/majordomo-info.html > > > > Andrew is right. > > Another issue to take care of is the delivering receipe. > > If you have such receipe, the mail is delivered and no more further > actions are taken. > > You must change the type of the first receipe to a > non-delivering receipe by adding the flag "c" > > Read the man page for procmailrc. > > Have a nice day. > > - > To unsubscribe from this list: send the line "unsubscribe linux-admin" > in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >