mharc-users

Re: Procmail problem?

2002-11-19 17:09:12
On November 19, 2002 at 13:34, "Christopher P. Lindsey" wrote:

 :0
 * ? test ! -d $MBOXROOT/.catch
 `mkdir -m 755 -p $MBOXROOT/.catch`

The procmail manpages did not mention the use of `cmd` (although
I do see it used in the procmailex manpage), but I was not sure of
the operational sematics of using them.  I'm assuming that the recipe
you gave will not cause rule processing to terminate?  

Right.  It will only terminate if delivery was successful to a file or
to a pipe.  To be syntactically correct, it probably should be

 :0
 * ? test ! -d $MBOXROOT/.catch
 MKDIR = `mkdir -m 755 -p $MBOXROOT/.catch`

A variable assignment isn't treated as delivery, so it just continues
through to the next recipe.

Are you sure.  I just tried the following:

  :0
  HAVEMATCH=`echo yes`

And the message got delivered to a mailbox called "HAVEMATCH=yes".
It appears that the pipe is mandatory if you do not want processing
terminated:

  :0 Wih
  HAVEMATCH=|echo yes

--ewh

---------------------------------------------------------------------
To sign-off this list, send email to majordomo(_at_)mhonarc(_dot_)org with the
message text UNSUBSCRIBE MHARC-USERS

<Prev in Thread] Current Thread [Next in Thread>