Merge pull request #178 from danielfaulknor/python-3.6

Fix for Python 3.6
This commit is contained in:
Pēteris Caune 2018-06-28 17:53:45 +03:00 committed by GitHub
commit 33d8a1505c
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]