Browse Source

Explicit decode_data=False (otherwise, py3.5 passes str, py3.6+ passes bytes). Should fix #242

pull/248/head
Pēteris Caune 6 years ago
parent
commit
2a7129f8c8
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      hc/api/management/commands/smtpd.py

+ 1
- 1
hc/api/management/commands/smtpd.py View File

@ -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):
def __init__(self, localaddr, 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):
# get a new db connection in case the old one has timed out:


Loading…
Cancel
Save