diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2017-01-26 11:47:13 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2017-01-26 11:47:13 +0200 |
commit | 24a868b2f1158ef2ae82f9d342b0039226a761a3 (patch) | |
tree | 109023754aae24d51b0cc82f5ecfdd3c5ef53b11 /imap4d | |
parent | 014c99be6f811a0e099f3c0013a0a0bcc6316a1c (diff) | |
download | mailutils-24a868b2f1158ef2ae82f9d342b0039226a761a3.tar.gz mailutils-24a868b2f1158ef2ae82f9d342b0039226a761a3.tar.bz2 |
Minor fix.
* imap4d/list.c (list_ref): Use mu_imap_wildmatch_ci to check for
a request matching INBOX.
* include/mailutils/imaputil.h (mu_imap_wildmatch_ci): New prototype.
* libmailutils/imapio/wildmatch.c (mu_imap_wildmatch_ci): New function.
Diffstat (limited to 'imap4d')
-rw-r--r-- | imap4d/list.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/imap4d/list.c b/imap4d/list.c index 2a4e0722f..069804b56 100644 --- a/imap4d/list.c +++ b/imap4d/list.c @@ -171,8 +171,7 @@ list_ref (char const *ref, char const *wcard, char const *cwd, on this or some other server. */ if (!*ref && - (mu_imap_wildmatch (wcard, "INBOX", MU_HIERARCHY_DELIMITER) == 0 - || mu_imap_wildmatch (wcard, "inbox", MU_HIERARCHY_DELIMITER) == 0)) + mu_imap_wildmatch_ci (wcard, "INBOX", MU_HIERARCHY_DELIMITER) == 0) io_untagged_response (RESP_NONE, "LIST (\\NoInferiors) NIL INBOX"); mu_folder_enumerate (folder, NULL, (void*) wcard, 0, 0, NULL, |