diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2005-11-14 22:40:56 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2005-11-14 22:40:56 +0000 |
commit | 7cbf68a3f821b879779193fe19ff5c202b722433 (patch) | |
tree | ca915b976f09a7b721b0b335effab2c3133be652 | |
parent | 5a26cddfe3ad3d189aa77dc887390d8025172a3c (diff) | |
download | fetchmail-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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; } } |