imap: Added a helper function for upcoming untagged response filtering
authorJiri Hruska <jirka@fud.cz>
Tue, 26 Feb 2013 17:52:19 +0000 (18:52 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Tue, 26 Feb 2013 20:23:13 +0000 (20:23 +0000)
commit91b2184e1b443ac941475ad26baabb19d1f8f493
treedcb44112ea614d79693b26d683f90f90b280ede2
parent1ffdc5058e18450f36b33dc790df9ce4265b1c6c
imap: Added a helper function for upcoming untagged response filtering

RFC 3501 states that "the client MUST be prepared to accept any response
at all times" yet we assume anything received with "* " at the beginning
is the untagged response we want.

Introduced a helper function that checks whether the input looks like a
response to specified command, so that we may filter the ones we are
interested in according to the current state.
lib/imap.c