diff options
author | Kali Kaneko <kali@leap.se> | 2014-01-23 04:35:10 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2014-01-28 19:38:45 -0400 |
commit | dd6540425ae55c7e71a0c4f924672e2cc1d59da8 (patch) | |
tree | 550f0ff92d21a0116d7a0b8412db32af0f53e0b3 /mail/src | |
parent | 1a8e3d51fbbaca219f96efd768c5980f4eb566ac (diff) |
debug info
Diffstat (limited to 'mail/src')
-rw-r--r-- | mail/src/leap/mail/imap/messages.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mail/src/leap/mail/imap/messages.py b/mail/src/leap/mail/imap/messages.py index 46c9dc9..3c30aa8 100644 --- a/mail/src/leap/mail/imap/messages.py +++ b/mail/src/leap/mail/imap/messages.py @@ -524,8 +524,10 @@ class LeapMessage(fields, MailParser, MBoxParser): message. """ hdoc_content = self._hdoc.content + print "hdoc: ", hdoc_content body_phash = hdoc_content.get( fields.BODY_KEY, None) + print "body phash: ", body_phash if not body_phash: logger.warning("No body phash for this document!") return None @@ -537,16 +539,19 @@ class LeapMessage(fields, MailParser, MBoxParser): if self._container is not None: bdoc = self._container.memstore.get_by_phash(body_phash) + print "bdoc from container -->", bdoc if bdoc: return bdoc else: print "no doc for that phash found!" + print "nuthing. soledad?" # no memstore or no doc found there if self._soledad: body_docs = self._soledad.get_from_index( fields.TYPE_P_HASH_IDX, fields.TYPE_CONTENT_VAL, str(body_phash)) + print "returning body docs,,,", body_docs return first(body_docs) else: logger.error("No phash in container, and no soledad found!") |