Imap client: quote command arguments as necessary.
* include/mailutils/imapio.h (mu_imapio_send_command) (mu_imapio_send_command_e,mu_imapio_send_command_v) (mu_imapio_last_error,mu_imapio_clearerr): New protos. * include/mailutils/sys/imap.h (imap_command)<uid>: Remove. <extra>: New member. * libmailutils/imapio/Makefile.am (libimapio_la_SOURCES): Add new files. * libmailutils/imapio/qstring.c (mu_imapio_send_qstring_unfold): Improve functionality. * libmailutils/imapio/sendcmd.c: New file. * libmailutils/imapio/sendcmde.c: New file. * libmailutils/imapio/sendcmdv.c: New file. * libmailutils/imapio/errstate.c: New file. * libproto/imap/gencom.c (mu_imap_gencom): Use mu_imapio_send_command_v * libproto/imap/appstrsiz.c: Quote command arguments as necessary. * libproto/imap/capability.c: Likewise. * libproto/imap/check.c: Likewise. * libproto/imap/close.c: Likewise. * libproto/imap/copy.c: Likewise. * libproto/imap/delete.c: Likewise. * libproto/imap/expunge.c: Likewise. * libproto/imap/fetch.c: Likewise. * libproto/imap/list.c: Likewise. * libproto/imap/login.c: Likewise. * libproto/imap/mbcreate.c: Likewise. * libproto/imap/noop.c: Likewise. * libproto/imap/rename.c: Likewise. * libproto/imap/select.c: Likewise. * libproto/imap/store.c: Likewise. * libproto/imap/unselect.c: Likewise.
Showing
25 changed files
with
284 additions
and
69 deletions
libmailutils/imapio/errstate.c
0 → 100644
libmailutils/imapio/sendcmd.c
0 → 100644
libmailutils/imapio/sendcmde.c
0 → 100644
libmailutils/imapio/sendcmdv.c
0 → 100644
-
Please register or sign in to post a comment