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:
Jiri Hruska 2013-02-28 19:56:52 +01:00 committed by Steve Holme
parent cdea86ff67
commit 025ba6e9be
1 changed files with 1 additions and 1 deletions

View File

@ -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" */