[Spambayes] pop3proxy now supports multiple POP3 accounts

Richie Hindle richie@entrian.com
Wed Nov 20 12:46:20 2002

[Tim Stone]
> One thing to think about... I'm going to be running more than one of these, 
> because I have several pop3 accounts.  Would it be possible to make pop3proxy 
> configurable to proxy more than one pop3 account?  I'd like to share the same 
> bayes database between them all...

This is now done.  It creates a listening port for each account [I don't
like the popular idea of munging the POP3 username to include the hostname,
because it complicates the proxy - simple is good].  See Options.py for the
new ini-file settings - you give it a list of POP3 servers and a
corresponding list of local ports to listen on.  The old settings still
work but are deprecated and give a warning.  It passes this test:

# Evil self-proxying test.
pop3proxy_servers: localhost:8110, localhost:111
pop3proxy_ports: 111, 110

where localhost:8110 is a local test POP3 server a la "pop3proxy.py -t".
This makes it run two proxies, one pointing at the other.  The messages
come back classified twice (because it doesn't yet strip existing
X-Hammie-Disposition headers - must fix that 8-)

And this from a single-threaded program.  Sometimes asyncore winds me up,
but sometimes I really have to take my hat off to it.

Richie Hindle

More information about the Spambayes mailing list