mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
imap: Introduced FETCH_FINAL state for processing final fetch responses
A typical FETCH response can be broken down into four parts: 1) "* <uid> FETCH (<what> {<size>}\r\n", using continuation syntax 2) <size> bytes of the actual message 3) ")\r\n", finishing the untagged response 4) "<tag> OK ...", finishing the command Part 1 is read in imap_fetch_resp(), part 2 is consumed in the PERFORM phase by the transfer subsystem, parts 3 and 4 are currently ignored.
This commit is contained in:
parent
692ef0e158
commit
974c663471
@ -467,6 +467,7 @@ static void state(struct connectdata *conn, imapstate newstate)
|
|||||||
"LOGIN",
|
"LOGIN",
|
||||||
"SELECT",
|
"SELECT",
|
||||||
"FETCH",
|
"FETCH",
|
||||||
|
"FETCH_FINAL",
|
||||||
"LOGOUT",
|
"LOGOUT",
|
||||||
/* LAST */
|
/* LAST */
|
||||||
};
|
};
|
||||||
|
@ -47,6 +47,7 @@ typedef enum {
|
|||||||
IMAP_LOGIN,
|
IMAP_LOGIN,
|
||||||
IMAP_SELECT,
|
IMAP_SELECT,
|
||||||
IMAP_FETCH,
|
IMAP_FETCH,
|
||||||
|
IMAP_FETCH_FINAL,
|
||||||
IMAP_LOGOUT,
|
IMAP_LOGOUT,
|
||||||
IMAP_LAST /* never used */
|
IMAP_LAST /* never used */
|
||||||
} imapstate;
|
} imapstate;
|
||||||
|
Loading…
Reference in New Issue
Block a user