Re: ending procmail execution when matching in a block
LuKreme <[email protected]>
| Newsgroups | gmane.mail.procmail |
|---|---|
| Message-ID | <[email protected]> |
Eric Smith squawked out on Thursday 08-Nov-2012@15:05:04
> I have blocks like these in my mailing list catcher INCLUDERC;
>
> :0:
> * ^list-post:([^ ]*\/\<.*)
> {
> :0c
> $LISTDIR/`echo $MATCH|sed -e 's/[@\.>].*//g' -e 's/.*[ <]//' -e
> 's/.*://'`
> :0
> * ? egrep -if /home/eric/serialised_subjects
> $DEFAULT
> }
>
> :0:
> * ^Mailing-list:([^ ]*\/\<.*)@
> {
> ...
>
> When the mail matches the condition above the block, the block
> commands are processed but the problem is that procmail does not
> exit at this point but continues to the next condition.
That’s because you are delivering a COPY of the message.
change :0c to :0
--
"We're philosophers. We think, therefore we am."