summaryrefslogtreecommitdiff
path: root/mail/src/leap
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
commita778c1249dca9067a7a5b748e00147a0a0be11f4 (patch)
treec2bb268389853901a8efe79adc2be3d4755ae4ab /mail/src/leap
parent896318a7168ae50490b7e142157aedb1202d8310 (diff)
select instead of examine
Diffstat (limited to 'mail/src/leap')
-rwxr-xr-xmail/src/leap/mail/imap/tests/regressions6
1 files changed, 4 insertions, 2 deletions
diff --git a/mail/src/leap/mail/imap/tests/regressions b/mail/src/leap/mail/imap/tests/regressions
index 0a433980..efe3f467 100755
--- a/mail/src/leap/mail/imap/tests/regressions
+++ b/mail/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)