summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2014-02-06 10:29:18 -0400
committerKali Kaneko <kali@leap.se>2014-02-17 11:37:03 -0400
commit4e672c2593fb975cec00e5d88a7e5d5e9bb3b18e (patch)
treece670da55a5eb5133013cc5d04a3fcda96163273
parentdc74c88f7b6858bca27f1bff886eadf830f6769b (diff)
temporarily nuke out the fetch_heders diversion
-rw-r--r--mail/src/leap/mail/imap/server.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/mail/src/leap/mail/imap/server.py b/mail/src/leap/mail/imap/server.py
index ba63846b..f4b9f71a 100644
--- a/mail/src/leap/mail/imap/server.py
+++ b/mail/src/leap/mail/imap/server.py
@@ -114,14 +114,16 @@ class LeapIMAPServer(imap4.IMAP4Server):
).addCallback(
cbFetch, tag, query, uid
).addErrback(ebFetch, tag)
- elif len(query) == 1 and str(query[0]) == "rfc822.header":
- self._oldTimeout = self.setTimeout(None)
+
+ # XXX not implemented yet --- should hit memstore
+ #elif len(query) == 1 and str(query[0]) == "rfc822.header":
+ #self._oldTimeout = self.setTimeout(None)
# no need to call iter, we get a generator
- maybeDeferred(
- self.mbox.fetch_headers, messages, uid=uid
- ).addCallback(
- cbFetch, tag, query, uid
- ).addErrback(ebFetch, tag)
+ #maybeDeferred(
+ #self.mbox.fetch_headers, messages, uid=uid
+ #).addCallback(
+ #cbFetch, tag, query, uid
+ #).addErrback(ebFetch, tag)
else:
self._oldTimeout = self.setTimeout(None)
# no need to call iter, we get a generator