imap: Introduced FETCH_FINAL state for processing final fetch responses
authorJiri Hruska <jirka@fud.cz>
Thu, 28 Feb 2013 18:16:33 +0000 (19:16 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Thu, 28 Feb 2013 21:00:10 +0000 (21:00 +0000)
commit974c663471c15721082d9bdc50d90dd6843467b0
treec083f6a4454558b599b8b86b98fd65f171e3f798
parent692ef0e1582703e8b55192dceff5ad95aae1eb54
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.
lib/imap.c
lib/imap.h