aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJiri Hruska <jirka@fud.cz>2013-02-28 19:56:52 +0100
committerSteve Holme <steve_holme@hotmail.com>2013-02-28 21:00:13 +0000
commit025ba6e9bec2d102c4abfd5a47aa9d9587e9566b (patch)
tree034f83dfd94a294c26193c942b06690fc2007a4c /lib
parentcdea86ff679989a1fb5422d401135064749b9921 (diff)
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/imap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/imap.c b/lib/imap.c
index a834c4e5f..c1ed8673b 100644
--- a/lib/imap.c
+++ b/lib/imap.c
@@ -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" */