Use IMAP-stile wildcards in folder matchers by default.
* imap4d/imap4d.h: Include mailutils/imaputil.h * imap4d/list.c: Use mu_folder_imap_match/mu_imap_wildmatch. * imap4d/lsub.c: Likewise. * imap4d/util.c (util_wcard_match): Move as to libmailutils as mu_imap_wildmatch. * include/mailutils/imaputil.h: New file. * include/mailutils/Makefile.am (pkginclude_HEADERS): Add imaputil.h * include/mailutils/folder.h (mu_folder_imap_match) (mu_folder_glob_match): New protos. * include/mailutils/imapio.h (mu_imap_flag_to_attribute) (mu_imap_format_flags): Move to imaputil.h * libmailutils/imapio/wildmatch.c: New file. * libmailutils/imapio/sendflg.c: New file. * libmailutils/imapio/Makefile.am (libimapio_la_SOURCES): Add sendflg.c and wildmatch.c. * libmailutils/imapio/flags.c (mu_imapio_send_flags): Move to sendflg.c * libmailutils/mailbox/folder.c (mu_folder_match): Rename to mu_folder_glob_match. (mu_folder_imap_match): New function. (mu_folder_create_from_record): Use mu_folder_imap_match as the default matcher. * libmailutils/tests/fsfolder.c: Start command line options with a dash. New option "-glob". All uses changed. * libproto/imap/select.c: Include imaputil.h * mu/imap.c: Likewise.
Showing
19 changed files
with
203 additions
and
107 deletions
include/mailutils/imaputil.h
0 → 100644
libmailutils/imapio/sendflg.c
0 → 100644
libmailutils/imapio/wildmatch.c
0 → 100644
-
Please register or sign in to post a comment