From 014916a26482b510c2e330c980117e2e240e6fd9 Mon Sep 17 00:00:00 2001 From: Jefferson Stachelski Date: Mon, 16 Nov 2015 11:36:00 -0200 Subject: Issue #525 - Fixed the space on mail address Doing a trim on every recipient string --- service/pixelated/adapter/mailstore/leap_mailstore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'service/pixelated/adapter/mailstore') 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)] -- cgit v1.2.3