Use mu_msgset_t in imap client for FETCH, STORE and COPY.
* include/mailutils/imap.h (mu_imap_fetch,mu_imap_store) (mu_imap_store_flags,mu_imap_copy): Take mu_msgset_t as the message set parameter. * include/mailutils/imapio.h (mu_imapio_send_msgset): New proto. (mu_imapio_send_command_v,mu_imapio_send_command) (mu_imapio_send_command_e): Take additional mu_msgset_t parameter. All uses changed. * include/mailutils/msgset.h (mu_msgset_parse_imap): Input string is const. * include/mailutils/sys/imap.h (imap_command) <msgset>: New member. * libmailutils/imapio/sendmsgset.c: New file. * libmailutils/imapio/Makefile.am (libimapio_la_SOURCES): Add sendmsgset.c. * libmailutils/imapio/sendcmd.c (mu_imapio_send_command): Take additional mu_msgset_t parameter. * libmailutils/imapio/sendcmde.c (mu_imapio_send_command_e): Likewise. * libmailutils/imapio/sendcmdv.c (mu_imapio_send_command_v): Likewise. * libmailutils/msgset/parse.c (mu_msgset_parse_imap): Input string is const. * libproto/imap/copy.c (mu_imap_copy): Take mu_msgset_t as the message set parameter. * libproto/imap/fetch.c (mu_imap_fetch): Likewise. * libproto/imap/store.c (mu_imap_store): Likewise. * libproto/imap/storeflg.c (mu_imap_store_flags): Likewise. * libproto/imap/gencom.c (mu_imap_gencom): Send cmd->msgset.
Showing
28 changed files
with
266 additions
and
147 deletions
libmailutils/imapio/sendmsgset.c
0 → 100644
-
Please register or sign in to post a comment