forked from GithubBackups/healthchecks
Explicit decode_data=False (otherwise, py3.5 passes str, py3.6+ passes bytes). Should fix #242
This commit is contained in:
parent
4ecbe95cee
commit
2a7129f8c8
@ -13,7 +13,7 @@ RE_UUID = re.compile("^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[8|9|aA|bB]
|
|||||||
class Listener(SMTPServer):
|
class Listener(SMTPServer):
|
||||||
def __init__(self, localaddr, stdout):
|
def __init__(self, localaddr, stdout):
|
||||||
self.stdout = stdout
|
self.stdout = stdout
|
||||||
super(Listener, self).__init__(localaddr, None)
|
super(Listener, self).__init__(localaddr, None, decode_data=False)
|
||||||
|
|
||||||
def process_message(self, peer, mailfrom, rcpttos, data, mail_options=None, rcpt_options=None):
|
def process_message(self, peer, mailfrom, rcpttos, data, mail_options=None, rcpt_options=None):
|
||||||
# get a new db connection in case the old one has timed out:
|
# get a new db connection in case the old one has timed out:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user