diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2020-07-27 13:09:44 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2020-07-27 13:09:44 +0300 |
commit | 332c95eff31ccc1b8fe8206e7a58b5600aada168 (patch) | |
tree | b800b595e37badd6016232bc4a330bad6620bb11 | |
parent | e9562a6f19d4baff5116df161954c91e684a6e3f (diff) | |
download | mailutils-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.c | 3 |
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 |