diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-08-27 15:46:06 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-08-27 15:46:06 +0000 |
commit | 162efff095fd7bfd12a37407a09b5f9f88086c62 (patch) | |
tree | 5f5d5cf0bdfee9779b1184ed55269c3205b5388d /imap.c | |
parent | 12568e37825867b2ebbe1aa8201c1c931f1a7e4e (diff) | |
download | fetchmail-162efff095fd7bfd12a37407a09b5f9f88086c62.tar.gz fetchmail-162efff095fd7bfd12a37407a09b5f9f88086c62.tar.bz2 fetchmail-162efff095fd7bfd12a37407a09b5f9f88086c62.zip |
Correct processing of greeting messages.
svn path=/trunk/; revision=75
Diffstat (limited to 'imap.c')
-rw-r--r-- | imap.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -64,8 +64,10 @@ int socket; } while (tag[0] != '\0' && strncmp(buf, tag, strlen(tag))); - if (tag[0] == '\0') + if (tag[0] == '\0') { + strcpy(argbuf, buf); return(0); + } else { if (strncmp(buf + TAGLEN + 1, "OK", 2) == 0) { strcpy(argbuf, buf + TAGLEN); |