summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2014-02-12 12:44:18 -0400
committerKali Kaneko <kali@leap.se>2014-02-17 11:39:50 -0400
commit3490773898c0b1af76ff18b088b099b7cde677e7 (patch)
tree6d0a0bc8bfd37ccc188cb002e784ce7952e54548
parentac4c70f0be36c985e16e3f4ec0a38ef6f8d48166 (diff)
select instead of examine
-rwxr-xr-xsrc/leap/mail/imap/tests/regressions6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/leap/mail/imap/tests/regressions b/src/leap/mail/imap/tests/regressions
index 0a43398..efe3f46 100755
--- a/src/leap/mail/imap/tests/regressions
+++ b/src/leap/mail/imap/tests/regressions
@@ -101,7 +101,6 @@ def compare_msg_parts(a, b):
pprint(b[index])
print
-
return all_match
@@ -328,7 +327,7 @@ def cbAppendNextMessage(proto):
return proto.append(
REGRESSIONS_FOLDER, msg
).addCallback(
- lambda r: proto.examine(REGRESSIONS_FOLDER)
+ lambda r: proto.select(REGRESSIONS_FOLDER)
).addCallback(
cbAppend, proto, raw
).addErrback(
@@ -379,6 +378,9 @@ def cbCompareMessage(result, proto, raw):
if result:
keys = result.keys()
keys.sort()
+ else:
+ print "[-] GOT NO RESULT"
+ return proto.logout()
latest = max(keys)