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 | 0754dac293730b02942716991d5edc513c36ff7c (patch) | |
tree | 99101d1d9cfbc39c9e0fc3cc9f4447dc12db0853 /src | |
parent | e2218eec4fd91e4648160a05e3debc05efa0d0d9 (diff) |
debug info
Diffstat (limited to 'src')
-rw-r--r-- | src/leap/mail/imap/messages.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/leap/mail/imap/messages.py b/src/leap/mail/imap/messages.py index 46c9dc9..3c30aa8 100644 --- a/src/leap/mail/imap/messages.py +++ b/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!") |