mirror of
https://github.com/curl/curl.git
synced 2026-05-01 01:37:52 +03:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue