Fix for Python 3.6

This commit is contained in:
Dan Faulknor 2018-06-29 00:26:39 +12:00 committed by GitHub
parent 1c71010a41
commit 8265ac5a97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,7 @@ class Listener(SMTPServer):
self.stdout = stdout
super(Listener, self).__init__(localaddr, None)
def process_message(self, peer, mailfrom, rcpttos, data):
def process_message(self, peer, mailfrom, rcpttos, data, mail_options=None, rcpt_options=None):
to_parts = rcpttos[0].split("@")
code = to_parts[0]