The maildropfilter(5) documentation seems inconsistent about xfilter
and RETURNCODE.
RETURNCODE
This variable is set when maildrop runs the xfilter command, or a
command that's specified within a pair of backtick characters (
command substitution ). The RETURNCODE variable will be set to the
exit code of the command, after it completes.
...
xfilter - filter message through another program
xfilter expression
expression specifies an external program that maildrop runs to filter
the current message. The current message will be piped to the filter
program as standard input. The output of the filter program replaces
the current message being delivered. The external program must
terminate with an exit code of 0. If the external program does not
terminate with an exit code of 0, or if it does not read the message
from the standard input, maildrop terminates with an exit code of
EX_TEMPFAIL.
The former implies that xfilter lets you test RETURNCODE after the
xfilter. The latter implies that you'll never be able to see any
value other than RETURNCODE==0. Which is it?
Also, how does maildrop know "if it does not read the message from the
standard input"?
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users