Lloyd Zusman <[EMAIL PROTECTED]> writes:

> Tim Legant <[EMAIL PROTECTED]> writes:
> 
> How about just changing the word "deliver" to "filtered to stdout"
> in the Actn: line when the -p option is in effect?

That's a possibility.  The important thing is that the log still
indicate which rule matched.  I don't think that substituting
"filtered to stdout" for whatever the action was (ok, accept, deliver,
deliver=<destination>) will lose any information though.  I also
discovered that all logging goes through a single function (haven't
looked at that in a while), so this might be easier than I first
thought.

> > Right.  DELIVERY is automatically set to "_qok_" if you do nothing.
> > That's true for both qmail and Courier.  When the '-p' option is seen,
> > tmda-rfilter just resets DELIVERY to "_filter_" for that message, and
> > then does the right thing during "delivery".
> 
> So if I set DELIVERY to "_filter_" in /etc/tmdarc or ~/.tmda/config,
> will that cause tmda-filter to run as if there's a -p/--print option,
> even if it isn't set?

Yes.  Since it's in tmdarc/config, it will be in effect for every
piece of mail a user gets.  There's no way to turn it off.  On the
other hand, putting it in /etc/tmdarc sounds like the simplest
solution to the situation you described.  Then your users who use TMDA
simply put "xfilter tmda-filter" in their ~/.mailfilter and use the
exception statement to handle non-zero returns.


Tim
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to