summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2014-01-16 17:13:05 -0400
committerKali Kaneko <kali@leap.se>2014-01-16 17:13:05 -0400
commit77def3fb8d8b8106ebb341e6cb7ee9987ce6e2e9 (patch)
tree82fea71c4e7217120cc130ceaa74fdf0230e6dbe /src/leap
parent06eebf54ab572ebaf6730f2095a062cd9549f12e (diff)
Dispatch the flags query if it's the only one.
ie, we got something like FETCH 1:* (FLAGS) but not for FETCH 1:* (FLAGS INTERNALDATE)
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/mail/imap/service/imap.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/leap/mail/imap/service/imap.py b/src/leap/mail/imap/service/imap.py
index e877869..8c5b488 100644
--- a/src/leap/mail/imap/service/imap.py
+++ b/src/leap/mail/imap/service/imap.py
@@ -124,7 +124,9 @@ class LeapIMAPServer(imap4.IMAP4Server):
cbFetch = self._IMAP4Server__cbFetch
ebFetch = self._IMAP4Server__ebFetch
- if str(query[0]) == "flags":
+ print "QUERY: ", query
+
+ if len(query) == 1 and str(query[0]) == "flags":
self._oldTimeout = self.setTimeout(None)
# no need to call iter, we get a generator
maybeDeferred(