Jay Lee wrote:
another possible way I can think of doing this
is adding something like this the end of your global maildroprc:
exception {
include '$HOME/.mailfilter'
}
exit
This would cause the global filter to execute individual users filters
but ignore a failed compile (maybe?). The exit would prevent user's
.mailfilter files from being executed again. I haven't tried this to
see if it works yet, my test box is down right now, just an idea...
Oops! That final exit will consider the message delivered without ever
having written it to the user's Maildir! Instead of exit, it should be
something like:
to $MAILDIR
Otherwise, as far as I can tell in testing this works nicely. The
failed compile of the include is reported in /var/log/maillog but
maildrop will then continue processing the last line in maildroprc
instead of deffering the message. User's with invalid .mailfilter files
will simply get all mail to INBOX, when they come to ask their admin why
that is, a simple grep of the maillog will show the syntax errors.
Seems like a decent solution to the problem...
Jay