Edward Elliott wrote:
> import smtpd
>
> class SMTPProxy (smtpd.SMTPServer):
> def process_message (self, peer, mailfrom, rcpttos, data):
> # my code here
>
> proxy = SMTPProxy (listen_addr, relay_addr)
> # now what?
Update: I think I've solved it. SMTPServer registers with asyncor
Heiko Wundram wrote:
> If you don't define an __init__() yourself (as it seems to be the case
> here), MRO (and the rules associated with class methods) will take care
> that the base class' __init__() gets called automatically.
Yes __init__ is being called. smtpd.PureProxy doesn't define its ow
Am Sonntag 14 Mai 2006 23:47 schrieb Dennis Lee Bieber:
> On Sun, 14 May 2006 20:47:33 GMT, Edward Elliott <[EMAIL PROTECTED]>
>
> declaimed the following in comp.lang.python:
> > class SMTPProxy (smtpd.SMTPServer):
>
> Don't you need to have an __init__() that invokes SMTPServer's
> __init__
I'm having trouble using the smptd module. The docs are woefully inadequate
and inspecting the source didn't help either. So far I've figured out how
to subclass smtpd.SMTPServer and override the process_message method to
handle smtp messages. I create an instance of my server and it listens on