[spambayes-dev] SpamBayes server compliant w/ spamassassin
Jkx at Pythonfr
jkx at pythonfr.org
Sat Apr 24 18:31:56 EDT 2004
On Saturday 24 April 2004 23:38, Skip Montanaro wrote:
> jkx> So this piece of code is a fake spamassassin server that use a
> jkx> spambayes for filtering.
>
> Take a look at sb_bnfilter.py. It's like spamc/spamd only better. The
> daemon (sb_bnserver.py) is forked automatically and quietly exits after a
> few seconds of idle time.
Yes i understand your meaning, but this tend to do something really
different.
sb_bnserver.py forks itself and wait for the user connection, by this
way it cache the db parsing and all the hammie classes needed for
working w/.
but :
1) you still need to create a python process for every incomming mail
sb_bnfilter. And python, even if it not a weight bloat, python eat
something like 4.5Mb of memory instead of the poor 500Ko of spamc
2) sb_bnserver need to be launch by the user (thought sb_bnfilter),
and it is written in this way, so it isn't system-wide filering.
spamc as some usefull stuff like round-robin filtering ..
For example, if i need to dipatch a lot of mail in mailbox (mailing list
for example), for every user it will fork n servers .. and so on ?
I think sb_bn* is pretty nice for a system w/ only few mail accounts
and should performs very for bursting email dispatch for a single user
like after a fetchmail... but this isn't my goal.
I admit that my code is a bit rought, as it only do the filtering , and don't
provide anyway of caching db, not simultanous acces but this is a first try ..
/ apologize for my poor english /
More information about the spambayes-dev
mailing list