imapio: fix payload tracing and handling of continuation responses
* include/mailutils/imapio.h (mu_imapio_create): Change signature. All uses updated. (mu_imapio_trace_payload,mu_imapio_get_trace_payload): New protos. * include/mailutils/sys/imapio.h (_mu_imapio) <_imap_server> <_imap_trace_payload>: New bits. * libmailutils/imapio/create.c (mu_imapio_create): Take three arguments, the third one specifying whether the imapio object is intended for server or client. * libmailutils/imapio/getline.c (initial_parse): In server mode, parse everything at once. Handle continuation responses in client mode. (mu_imapio_getline): Toggle MU_XSCRIPT_PAYLOAD only if requested. * libmailutils/imapio/literal.c: Wait for continuation response (in client mode). * libmailutils/imapio/trace.c (mu_imapio_trace_payload) (mu_imapio_get_trace_payload): New functions. * libmailutils/tests/imapio.c: New option -server. * libmailutils/tests/imapio.at: Update literal tests.
Showing
8 changed files
with
108 additions
and
25 deletions
-
Please register or sign in to post a comment