]> diplodocus.org Git - minc/commit
use FileHandle and set autoflush on STDOUT since the new spam checking
authorepg <>
Sun, 6 Apr 2003 02:23:24 +0000 (02:23 +0000)
committerepg <>
Sun, 6 Apr 2003 02:23:24 +0000 (02:23 +0000)
commitb5058fecb4757e150f19525a81207ae974114f17
treed39ee382bc34e63de83b093b0a9adb8455f81ca7
parenta9af198b3590979fa3b964056677ac7259cdd4ff
use FileHandle and set autoflush on STDOUT since the new spam checking
is so fast the status reporting is now funky without autoflushing.

Document spam_check, spam_start_hook, spam_stop_hook.

My trick for defining is_spam() was broken and i never noticed because
i wasn't doing use strict in .mincspam; fix it with eval and also add
spam_start_hook and spam_stop_hook.

(kill_spam): Now call spam_start_hook(), save the list it returns, and
pass it to each spam_check() call (formerly known as is_spam()).  Also
pass it to spam_stop_hook() after processing all spam.  This allows
the spam processor to maintain state, and do other things like talk to
a co-process.
minc