summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2020-07-27 13:09:44 +0300
committerSergey Poznyakoff <gray@gnu.org>2020-07-27 13:09:44 +0300
commit332c95eff31ccc1b8fe8206e7a58b5600aada168 (patch)
treeb800b595e37badd6016232bc4a330bad6620bb11
parente9562a6f19d4baff5116df161954c91e684a6e3f (diff)
downloadmailutils-332c95eff31ccc1b8fe8206e7a58b5600aada168.tar.gz
mailutils-332c95eff31ccc1b8fe8206e7a58b5600aada168.tar.bz2
Bugfix
* imap4d/namespace.c (prefix_translate_name): The name "INBOX" is special only without prefix.
-rw-r--r--imap4d/namespace.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/imap4d/namespace.c b/imap4d/namespace.c
index 37faad5ce..a28ba7701 100644
--- a/imap4d/namespace.c
+++ b/imap4d/namespace.c
@@ -175,7 +175,8 @@ prefix_translate_name (struct namespace_prefix const *pfx, char const *name,
name += pfxlen;
- if (pfx->ns == NS_PERSONAL && mu_c_strcasecmp (name, "INBOX") == 0)
+ if (pfx->ns == NS_PERSONAL && pfxlen == 0 &&
+ mu_c_strcasecmp (name, "INBOX") == 0)
{
tmpl = mu_strdup (auth_data->mailbox);
return tmpl;//FIXME

Return to:

Send suggestions and report system problems to the System administrator.