aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-09-09 20:13:45 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-09-09 20:13:45 +0000
commitcc154e2e65610ffa46cd59ca1a97f09ed68271a4 (patch)
tree6fa28bad8f057b4fb58f6243c7f0587c4eb6b0a9 /imap.c
parentb257b8ceac0f8bfefee354f7a5d3aafb2592e658 (diff)
downloadfetchmail-cc154e2e65610ffa46cd59ca1a97f09ed68271a4.tar.gz
fetchmail-cc154e2e65610ffa46cd59ca1a97f09ed68271a4.tar.bz2
fetchmail-cc154e2e65610ffa46cd59ca1a97f09ed68271a4.zip
Allow this to work with Cyrus server.
svn path=/trunk/; revision=1321
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;
}