diff options
-rw-r--r-- | CHANGELOG | 5 | ||||
-rw-r--r-- | changes/bug_save_doc | 1 | ||||
-rw-r--r-- | src/leap/mx/mail_receiver.py | 2 |
3 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,8 @@ +0.3.2 Sep 6: + o Keep file watcher in memory to prevent losing file events. + o Properly save the incoming mail as a doc in couch. + o Properly parse mail address of the form "Name <user@domain>". Fixes #3653. + 0.3.1 Aug 23: o Migrate mx functions to work on the new couchdb structure and views. Fixes #3502. diff --git a/changes/bug_save_doc b/changes/bug_save_doc deleted file mode 100644 index 287228a..0000000 --- a/changes/bug_save_doc +++ /dev/null @@ -1 +0,0 @@ - o Properly save the incoming mail as a doc in couch.
\ No newline at end of file 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) |