mirror of https://github.com/moparisthebest/curl
imap: Fixed error code returned for invalid FETCH response
If the FETCH command does not result in an untagged response the the UID is probably invalid. As such do not return CURLE_OK.
This commit is contained in:
parent
cdea86ff67
commit
025ba6e9be
|
@ -1271,7 +1271,7 @@ static CURLcode imap_state_fetch_resp(struct connectdata *conn, int imapcode,
|
|||
if('*' != imapcode) {
|
||||
Curl_pgrsSetDownloadSize(data, 0);
|
||||
state(conn, IMAP_STOP);
|
||||
return CURLE_OK;
|
||||
return CURLE_REMOTE_FILE_NOT_FOUND; /* TODO: Fix error code */
|
||||
}
|
||||
|
||||
/* Something like this comes "* 1 FETCH (BODY[TEXT] {2021}\r" */
|
||||
|
|
Loading…
Reference in New Issue