aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2005-11-14 22:40:56 +0000
committerMatthias Andree <matthias.andree@gmx.de>2005-11-14 22:40:56 +0000
commit7cbf68a3f821b879779193fe19ff5c202b722433 (patch)
treeca915b976f09a7b721b0b335effab2c3133be652
parent5a26cddfe3ad3d189aa77dc887390d8025172a3c (diff)
downloadfetchmail-7cbf68a3f821b879779193fe19ff5c202b722433.tar.gz
fetchmail-7cbf68a3f821b879779193fe19ff5c202b722433.tar.bz2
fetchmail-7cbf68a3f821b879779193fe19ff5c202b722433.zip
Patch to make imap_trail actually work. Sunil Shetye.
svn path=/trunk/; revision=4441
-rw-r--r--imap.c5
1 files 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;
}
}