]> granicus.if.org Git - curl/commit
imap: Implemented APPEND final processing
authorJiri Hruska <jirka@fud.cz>
Fri, 1 Mar 2013 19:34:51 +0000 (20:34 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Sat, 2 Mar 2013 19:34:25 +0000 (19:34 +0000)
commitf8c8c76d39ac2fa825481ba42ab2247cd122f963
treeff0b3ad78f16ff8ea8b287e6a3e3cd658f6595f4
parent90b7d0ea599a030b5e24e1edcdb3c1d8e079f399
imap: Implemented APPEND final processing

The APPEND operation needs to be performed in several steps:
  1) We send "<tag> APPEND <mailbox> <flags> {<size>}\r\n"
  2) Server responds with continuation respose "+ ...\r\n"
  3) We start the transfer and send <size> bytes of data
  4) Only now we end the request command line by sending "\r\n"
  5) Server responds with "<tag> OK ...\r\n"

This commit performs steps 4 and 5, in the DONE phase, as more
processing is required after the transfer.
lib/imap.c