diff options
author | Kali Kaneko <kali@leap.se> | 2013-05-20 23:10:07 +0900 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2013-05-21 04:06:54 +0900 |
commit | 01a0bc796e0e12c0c4d9afd02a2c4e7ade166d11 (patch) | |
tree | 27d447500f6ff564a3c046b073cda9bc4965dad3 /src/leap/mail/imap/fetch.py | |
parent | 33289c373e4fdbb506b8486c73e5ff1a7837882f (diff) |
cleanup and complete docs
Diffstat (limited to 'src/leap/mail/imap/fetch.py')
-rw-r--r-- | src/leap/mail/imap/fetch.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/leap/mail/imap/fetch.py b/src/leap/mail/imap/fetch.py index adf5787..bcd8901 100644 --- a/src/leap/mail/imap/fetch.py +++ b/src/leap/mail/imap/fetch.py @@ -66,8 +66,7 @@ class LeapIncomingMail(object): soledad_path, server_url, server_pemfile, - token, - bootstrap=True) + token) self._pkey = self._keymanager.get_all_keys_in_local_db( private=True).pop() @@ -109,7 +108,7 @@ class LeapIncomingMail(object): """ Process a successfully decrypted message """ - log.msg("processing message!") + log.msg("processing incoming message!") msg = json.loads(data) if not isinstance(msg, dict): return False @@ -119,10 +118,10 @@ class LeapIncomingMail(object): rawmsg = msg.get('content', None) if not rawmsg: return False - log.msg("we got raw message") + #log.msg("we got raw message") # add to inbox and delete from soledad inbox.addMessage(rawmsg, ("\\Recent",)) - log.msg("added msg") + doc_id = doc.doc_id self._soledad.delete_doc(doc) - log.msg("deleted doc") + log.msg("deleted doc %s from incoming" % doc_id) |