summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2013-09-12 14:23:32 +0200
committerKali Kaneko <kali@leap.se>2013-09-12 14:23:32 +0200
commit2d74eccb26f3fa46d0cd32d7405df2801bd88a69 (patch)
treecd75bfd96eadd1069057bc90f68cf60ff727e144 /src
parent93b40ac6ab15a5bca129a87fdffcfaec934e9f7e (diff)
parentbf74c7720808ae4a0a94ea80439bea08e1441acd (diff)
Merge tag '0.3.2' into debian-0.3.2
Tag leap.mx version 0.3.2
Diffstat (limited to 'src')
-rw-r--r--src/leap/mx/mail_receiver.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/leap/mx/mail_receiver.py b/src/leap/mx/mail_receiver.py
index 24ba2fe..5875034 100644
--- a/src/leap/mx/mail_receiver.py
+++ b/src/leap/mx/mail_receiver.py
@@ -24,6 +24,7 @@ import os
import uuid as pyuuid
import json
+import email.utils
from email import message_from_string
@@ -219,6 +220,7 @@ class MailReceiver(Service):
"Delivered-To: field")
log.msg("Mail owner: %s" % (owner,))
+ owner = email.utils.parseaddr(owner)[1]
log.msg("%s received a new mail" % (owner,))
dpubk = self._users_cdb.getPubKey(owner)
duuid = self._users_cdb.queryByAddress(owner)