Gracefully handle empty mailboxes in mu_msgset_parse_imap
* libmailutils/msgset/parse.c (MU_MSGSET_EMPTY): New constant. (parse_msgrange): Don't add any ranges if mode is set to MU_MSGSET_EMPTY. (mu_msgset_parse_imap): Force MU_MSGSET_EMPTY mode if the mailbox is empty. * libmailutils/msgset/print.c (mu_msgset_print): Handle empty message sets. * libmailutils/msgset/trans.c (_mu_msgset_translate_pair): Initialize variable. * libmailutils/tests/Makefile.am (msgset_LDADD): New variable. * libmailutils/tests/msgset.c (parse_msgset): Take mailbox as first argument. (main): New option -mailbox
Showing
5 changed files
with
33 additions
and
11 deletions
-
Please register or sign in to post a comment