diff options
author | Kali Kaneko <kali@leap.se> | 2014-02-05 16:47:36 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2014-02-05 16:47:36 -0400 |
commit | bf9db4b5381230b4e2a1e1d2d4b2acc31c29ff87 (patch) | |
tree | 112a7c62db681d7025d982a37ac874bb13d82a82 /src/leap/mail/imap/messageparts.py | |
parent | 621fd3a9099f980fa4d0a2402713e1778913d489 (diff) |
Fix the fallback for the memoized call for bodies/content.
Changed to "empty" to consider empty strings too.
Diffstat (limited to 'src/leap/mail/imap/messageparts.py')
-rw-r--r-- | src/leap/mail/imap/messageparts.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leap/mail/imap/messageparts.py b/src/leap/mail/imap/messageparts.py index 2d9b3a2..b1f333a 100644 --- a/src/leap/mail/imap/messageparts.py +++ b/src/leap/mail/imap/messageparts.py @@ -398,7 +398,7 @@ class MessagePart(object): payload = "" else: payload = self._get_payload_from_document_memoized(phash) - if payload is None: + if empty(payload): payload = self._get_payload_from_document(phash) else: |