procmail
[Top] [All Lists]

Re: How to exit procmail immediately with non-delivery error

2000-11-23 12:37:54
Sean told Mary,

| Keep in mind, I don't use procmail to bounce messages, but the 
| following should be valid:
| 
| :0
| * ^somecriteria
| { EXITCODE = 67 ; HOST }

Lose the semicolon.  Also, unsetting HOST drops mail on the floor only if
there are no remaining unopened rcfiles named on procmail's command line (but
there usually are none or perhaps only one to start these days).

Mary had even asked if this would work,

:0
* Whatever condition, or omit this line if unconditional.
{ EXITCODE=75 HOST }

and Sean answered,

| Hock a semicolon between them.

No, do not add a semicolon.  However, 75 is probably a bad choice, as it
requeues the message for another try.  67 or 77 would be better.

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail