From 7cbf68a3f821b879779193fe19ff5c202b722433 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Mon, 14 Nov 2005 22:40:56 +0000 Subject: Patch to make imap_trail actually work. Sunil Shetye. svn path=/trunk/; revision=4441 --- imap.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/imap.c b/imap.c index 3226f59d..b7dae1af 100644 --- a/imap.c +++ b/imap.c @@ -1055,8 +1055,9 @@ static int imap_trail(int sock, struct query *ctl, int number, const char *tag) /* UW IMAP returns "OK FETCH", Cyrus returns "OK Completed" */ if (strncmp(buf, tag, strlen(tag)) == 0) { - t = buf + strspn(t, " \t"); - if (strncmp(t, "OK", 2)) + t = buf + strlen(tag); + t += strspn(t, " \t"); + if (strncmp(t, "OK", 2) == 0) break; } } -- cgit v1.2.3