On Wed, 14 Jan 2004, Troy Benjegerdes wrote:
On Wed, Jan 14, 2004 at 07:38:08AM -0600, Jon Nelson wrote:
...
> Please, if you want to throw away messages (and you are using maildrop), > simply set EXITCODE to 0 and exit. Done. *No* more programs are > invoked, *no* more I/O need occur, *no* more system resources consumed, > *no* more stupid special-case in the code. > > Note: (exit)codes other than 0 may also be appropriate here. > 0 works, I use it.
This should probably be documented explicitly in the courier and maildrop man pages (and maildropex). I've had several users ask how to send mail to the bit-bucket, and an example might help resolve confusion.
I agree completely. Sam?
maildropfilter already fully documents how the exit command works:
EXIT - TERMINATE FILTERING UNCONDITIONALLY
exit The exit statement immediately terminates filtering. maildropâs return
code is set to the value of the EXITCODE variable. Normally, maildrop
terminates immediately after successfully delivering the message to a
mailbox. The exit statement causes maildrop to terminate without deliv-
ering the message anywhere.What exactly is so confusing, here?
pgp00000.pgp
Description: PGP signature
