Change callback handling in imap client.
* include/mailutils/imap.h (MU_IMAP_CB_NO) (MU_IMAP_CB_BAD,MU_IMAP_CB_BYE) (MU_IMAP_CB_PREAUTH): New callbacks. (mu_imap_callback_t): Change signature. (mu_imap_callback): Change signature. * include/mailutils/sys/imap.h (mu_imap_client_state) <MU_IMAP_CLOSING>: New state. * libproto/imap/callback.c (mu_imap_callback): Change signature. Fix boundary check. (mu_imap_register_callback_function): Fix boundary check. * libproto/imap/connect.c (mu_imap_connect): Use mu_imap_foreach_response to parse response. * libproto/imap/response.c (_mu_imap_response): Check number of words before dereferencing them. * libproto/imap/resproc.c: Handle all server responses. * mu/imap.c (com_connect): Set POPAUTH callback. Set verbosity flags after I/O structure has been created.
Showing
11 changed files
with
224 additions
and
113 deletions
-
Please register or sign in to post a comment