summaryrefslogtreecommitdiff
path: root/mail/src
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2016-04-26 22:55:40 -0400
committerKali Kaneko <kali@leap.se>2016-04-26 23:03:27 -0400
commit983d18e6a94e60c0f641ac332038b875ea685433 (patch)
tree06405735b61d8ba9316ee5886811b565068b43dc /mail/src
parent84ceab1abb1863906b51f4b78885aa99c66bafc4 (diff)
[bug] cast the identity to bytes
This fixes a bug in which the tls transport complains about receiving unicode. It was only made evident by running against twisted 16.
Diffstat (limited to 'mail/src')
-rw-r--r--mail/src/leap/mail/outgoing/service.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mail/src/leap/mail/outgoing/service.py b/mail/src/leap/mail/outgoing/service.py
index 335cae4..95d3e79 100644
--- a/mail/src/leap/mail/outgoing/service.py
+++ b/mail/src/leap/mail/outgoing/service.py
@@ -224,7 +224,7 @@ class OutgoingMail(object):
heloFallback=True,
requireAuthentication=False,
requireTransportSecurity=True)
- factory.domain = __version__
+ factory.domain = bytes('leap.mail-' + __version__)
emit_async(catalog.SMTP_SEND_MESSAGE_START,
self._from_address, recipient.dest.addrstr)
reactor.connectSSL(