imap client: implement select/examine.
* include/mailutils/imap.h (mu_imap_stat): New structs. (MU_IMAP_STAT_DEFINED_FLAGS,MU_IMAP_STAT_PERMANENT_FLAGS) (MU_IMAP_STAT_MESSAGE_COUNT,MU_IMAP_STAT_RECENT_COUNT) (MU_IMAP_STAT_FIRST_UNSEEN,MU_IMAP_STAT_UIDNEXT) (MU_IMAP_STAT_UIDVALIDITY): New flags. (mu_imap_select): New proto. * include/mailutils/imapio.h (mu_imap_flag_to_attribute) (mu_imap_format_flags): New protos. * include/mailutils/sys/imap.h (mu_imap_client_state) <MU_IMAP_SELECT_RX>: New state. (_mu_imap) <mbox_name,mbox_writable,mbox_stat>: New members. * libmailutils/imapio/flags.c: New file. * libmailutils/imapio/Makefile.am: Add flags.c * libproto/imap/select.c: New file. * libproto/imap/Makefile.am: Add select.c * libproto/imap/err.c (_mu_imap_seterrstr) (_mu_imap_clrerrstr, mu_imap_strerror): Allow for imap==NULL. * libproto/imap/id.c (mu_imap_id): Set errstr on MU_ERR_BADREPLY * libproto/imap/login.c (mu_imap_login): Likewise. * libproto/imap/resplist.c (_mu_imap_list_element_is_string): New function. * mu/imap.c: Implement examine and select.
Showing
12 changed files
with
458 additions
and
5 deletions
libmailutils/imapio/flags.c
0 → 100644
libproto/imap/select.c
0 → 100644
-
Please register or sign in to post a comment