imap: Added custom request perform and response handler functions
authorJiri Hruska <jirka@fud.cz>
Sun, 3 Mar 2013 10:09:44 +0000 (11:09 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Sun, 3 Mar 2013 13:10:31 +0000 (13:10 +0000)
commit226c1c6876fffd362f22c4a507be360fb1bc8103
tree4f05488538f541eb4594931c480a6cc47a33ad83
parent711065e4df72a3a6c8828eac30750a95d8d556d0
imap: Added custom request perform and response handler functions

Added imap_custom(), which initiates the custom command processing,
and an associated response handler imap_state_custom_resp(), which
handles any responses by sending them to the client as body data.

All untagged responses with the same name as the first word of the
custom request string are accepted, with the exception of SELECT and
EXAMINE which have responses that cannot be easily identified. An
extra check has been provided for them so that any untagged responses
are accepted for them.
lib/imap.c