summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2017-10-04 21:18:12 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2017-10-04 21:21:50 +0300
commitf2c76abff8e1eae88bdea7aa9770fdccb292f834 (patch)
tree5c8723714568e02ebc9a433ba01892bcff60ee6f
parent1d0c7b85b97343fd09f4076d069eeecc71f074a3 (diff)
downloadmailutils-f2c76abff8e1eae88bdea7aa9770fdccb292f834.tar.gz
mailutils-f2c76abff8e1eae88bdea7aa9770fdccb292f834.tar.bz2
bugfix in imap4d: INBOX name is case-insensitive
-rw-r--r--imap4d/list.c2
-rw-r--r--imap4d/namespace.c2
-rw-r--r--imap4d/select.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/imap4d/list.c b/imap4d/list.c
index 102f7e64d..6eb2f0d4f 100644
--- a/imap4d/list.c
+++ b/imap4d/list.c
@@ -45,7 +45,7 @@ list_fun (mu_folder_t folder, struct mu_list_response *resp, void *data)
name = resp->name + refinfo->dirlen;
/* There can be only one INBOX */
- if (refinfo->reflen == 0 && strcmp (name, "INBOX") == 0)
+ if (refinfo->reflen == 0 && mu_c_strcasecmp (name, "INBOX") == 0)
return 0;
/* Ignore mailboxes that contain delimiter as part of their name */
diff --git a/imap4d/namespace.c b/imap4d/namespace.c
index a9c8b5cc0..cd4012d95 100644
--- a/imap4d/namespace.c
+++ b/imap4d/namespace.c
@@ -176,7 +176,7 @@ prefix_translate_name (struct namespace_prefix const *pfx, char const *name,
name += pfxlen;
- if (pfx->ns == NS_PERSONAL && strcmp (name, "INBOX") == 0)
+ if (pfx->ns == NS_PERSONAL && mu_c_strcasecmp (name, "INBOX") == 0)
{
tmpl = mu_strdup (auth_data->mailbox);
return tmpl;//FIXME
diff --git a/imap4d/select.c b/imap4d/select.c
index 4e34a87c7..f3552b6ab 100644
--- a/imap4d/select.c
+++ b/imap4d/select.c
@@ -58,7 +58,7 @@ imap4d_select0 (struct imap4d_command *command, const char *mboxname,
imap4d_sync ();
}
- if (strcmp (mboxname, "INBOX") == 0)
+ if (mu_c_strcasecmp (mboxname, "INBOX") == 0)
flags |= MU_STREAM_CREAT;
mailbox_name = namespace_get_name (mboxname, &record, NULL);

Return to:

Send suggestions and report system problems to the System administrator.