From: urgrue <urgrue@tumsan.fi>
To: linux-admin@vger.kernel.org
Subject: Re: procmail forwarding to other user solvedf
Date: Thu, 10 Apr 2003 13:06:16 +0300 [thread overview]
Message-ID: <20030410100616.GA860@fede2.tumsan.fi> (raw)
In-Reply-To: <Pine.LNX.4.20.0304101305380.23895-100000@ct2.eltop.ro>; from horia@ct2.eltop.ro on Thu, Apr 10, 2003 at 13:10:09 +0300
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
>
next prev parent reply other threads:[~2003-04-10 10:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-10 9:23 procmail forwarding to other user urgrue
2003-04-10 10:03 ` Andrew Kelly
2003-04-10 10:10 ` Horia Chirculescu
2003-04-10 10:06 ` urgrue [this message]
2003-05-01 13:00 ` Keyboard Ben Clewett
2003-05-01 13:02 ` Keyboard Glynn Clements
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030410100616.GA860@fede2.tumsan.fi \
--to=urgrue@tumsan.fi \
--cc=linux-admin@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).