Skip to content
Permalink
Browse files

Don't check for continuation if we're executing a CUSTOMREQUEST

References curl#486
  • Loading branch information...
ehlertjd@gmail.com ehlertjd@gmail.com
ehlertjd@gmail.com authored and ehlertjd@gmail.com committed Oct 13, 2015
1 parent e960ba3 commit b2465099a9fee529166f15f4c95546849ba91fe1
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/imap.c
@@ -384,8 +384,8 @@ static bool imap_endofresp(struct connectdata *conn, char *line, size_t len,
a space and optionally some text as per RFC-3501 for the AUTHENTICATE and
APPEND commands and as outlined in Section 4. Examples of RFC-4959 but
some e-mail servers ignore this and only send a single + instead. */
if((len == 3 && !memcmp("+", line, 1)) ||
(len >= 2 && !memcmp("+ ", line, 2))) {
if(!imap->custom && ((len == 3 && !memcmp("+", line, 1)) ||
(len >= 2 && !memcmp("+ ", line, 2)))) {
switch(imapc->state) {
/* States which are interested in continuation responses */
case IMAP_AUTHENTICATE:

0 comments on commit b246509

Please sign in to comment.
You can’t perform that action at this time.