summaryrefslogtreecommitdiff
path: root/service/pixelated/adapter/mailstore
diff options
context:
space:
mode:
authorJefferson Stachelski <jstachel@thoughtworks.com>2015-11-16 11:36:00 -0200
committerJefferson Stachelski <jstachel@thoughtworks.com>2015-11-16 11:36:00 -0200
commit014916a26482b510c2e330c980117e2e240e6fd9 (patch)
tree191ad77fe5e3e812bb553518eb5ee11ebf87b7e0 /service/pixelated/adapter/mailstore
parentb118801b2c166e65f6d0f27e475cb0a12a1df3a2 (diff)
Issue #525 - Fixed the space on mail address
Doing a trim on every recipient string
Diffstat (limited to 'service/pixelated/adapter/mailstore')
-rw-r--r--service/pixelated/adapter/mailstore/leap_mailstore.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/pixelated/adapter/mailstore/leap_mailstore.py b/service/pixelated/adapter/mailstore/leap_mailstore.py
index fc670382..e7b183db 100644
--- a/service/pixelated/adapter/mailstore/leap_mailstore.py
+++ b/service/pixelated/adapter/mailstore/leap_mailstore.py
@@ -116,7 +116,7 @@ class LeapMail(Mail):
return self.remove_duplicates([self._decoded_header_utf_8(v) for v in header_value])
elif header_value is not None:
def encode_chunk(content, encoding):
- return unicode(content, encoding=encoding or 'ascii', errors='ignore')
+ return unicode(content.strip(), encoding=encoding or 'ascii', errors='ignore')
try:
encoded_chunks = [encode_chunk(content, encoding) for content, encoding in decode_header(header_value)]