Process untagged responses synchronously.
* include/mailutils/imap.h (mu_imap_response_action_t): Move to sys/imap.h (mu_imap_foreach_response): Remove. * include/mailutils/sys/imap.h (_mu_imap)<untagged_resp>: Remove. All sources updated. (_mu_imap_response): Change sigature. (_mu_imap_untagged_response_clear) (_mu_imap_untagged_response_add): Remove. (_mu_imap_untagged_response_to_list) (_mu_imap_process_untagged_response): New protos. * libproto/imap/connect.c: Use _mu_imap_untagged_response_to_list and _mu_imap_process_untagged_response. * libproto/imap/create.c: Update. * libproto/imap/destroy.c: Update. * libproto/imap/disconnect.c: Update. * libproto/imap/capability.c: Update calls to _mu_imap_response * libproto/imap/id.c: Likewise. * libproto/imap/login.c: Likewise. * libproto/imap/logout.c: Likewise. * libproto/imap/select.c: Likewise. * libproto/imap/status.c: Likewise. * libproto/imap/resplist.c (_mu_imap_untagged_response_clear): Remove. (_mu_imap_untagged_response_add): Remove. (_mu_imap_untagged_response_to_list): New function. * libproto/imap/response.c (_mu_imap_response): Take response-processing function and its closure as arguments. * libproto/imap/resproc.c (_mu_imap_process_untagged_response): New function. (mu_imap_foreach_response): Remove. * mu/imap.c: Install a BYE callback.
Showing
16 changed files
with
101 additions
and
127 deletions
-
Please register or sign in to post a comment