summaryrefslogtreecommitdiff
path: root/mail/src
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
commita7e6bfb1f7befb16926353519787155178194140 (patch)
tree9de859f60922dd747d7c8979ebd320d6f7e6e4dd /mail/src
parentcd908bc03bc57950fe46ad8803bffe3a5a65480b (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 'mail/src')
-rw-r--r--mail/src/leap/mail/imap/service/imap.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mail/src/leap/mail/imap/service/imap.py b/mail/src/leap/mail/imap/service/imap.py
index e8778696..8c5b488e 100644
--- a/mail/src/leap/mail/imap/service/imap.py
+++ b/mail/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(