At 11:51 AM +0200 2005-10-10, Brad Knowles wrote:
Anyway, I should now have the "modname" being printed in the "vette" log, so that I should be able to figure out which handler is causing the inappropriate bounces. I'll let you know when I find out more.
Okay, I think I found the offending module. Hold.py will syslog
to "vette", if the message is being held. But Moderate.py will not syslog anything -- it passes a held message to Hold.py, but handles rejections and discards itself.
Moreover, Moderate.py uses two different methods of handling
rejections and discards -- subscribers are handled in-line, while non-subscribers are handled through the do_reject() and do_discard() subroutines. And that's the only place the do_reject() and do_discard() subroutines are used.
So, I can't even just drop in a bit of logging in the do_reject()
and do_discard() subroutines, since they aren't both used for subscribers and non-subscribers alike. Sigh....
Can a real Python programmer suggest some changes that would
create syslog messages for rejects and discards for both subscribers and non-subscribers alike, and maybe re-factor the code to re-use the do_discard() and do_reject() subroutines, or do I need to try to fumble around and fix these myself?
-- Brad Knowles, <brad@stop.mail-abuse.org>
"Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin (1706-1790), reply of the Pennsylvania
Assembly to the Governor, November 11, 1755
SAGE member since 1995. See <http://www.sage.org/> for more info.