aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/imap.c b/imap.c
index 9540593d..3b25c6ec 100644
--- a/imap.c
+++ b/imap.c
@@ -584,7 +584,9 @@ static int imap_trail(int sock, struct query *ctl, int number)
if ((ok = gen_recv(sock, buf, sizeof(buf))))
return(ok);
- if (strstr(buf, "OK FETCH"))
+
+ /* UW IMAP returns "OK FETCH", Cyrus returns "OK Completed" */
+ if (strstr(buf, "OK"))
break;
}