From dd6540425ae55c7e71a0c4f924672e2cc1d59da8 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Thu, 23 Jan 2014 04:35:10 -0400 Subject: debug info --- mail/src/leap/mail/imap/messages.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mail') 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!") -- cgit v1.2.3