From cc154e2e65610ffa46cd59ca1a97f09ed68271a4 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 9 Sep 1997 20:13:45 +0000 Subject: Allow this to work with Cyrus server. svn path=/trunk/; revision=1321 --- imap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3