summaryrefslogtreecommitdiff
path: root/imap4d
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2017-01-26 11:47:13 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2017-01-26 11:47:13 +0200
commit24a868b2f1158ef2ae82f9d342b0039226a761a3 (patch)
tree109023754aae24d51b0cc82f5ecfdd3c5ef53b11 /imap4d
parent014c99be6f811a0e099f3c0013a0a0bcc6316a1c (diff)
downloadmailutils-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.c3
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,

Return to:

Send suggestions and report system problems to the System administrator.