From: Timo Sirainen Date: Tue, 6 Jan 2004 06:14:48 +0000 (+0200) Subject: LIST: If reference parameter is given, get the namespace from it. X-Git-Tag: 1.1.alpha1~4200 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6724fcdaa15c15e3c9d4992fa0ff549cbb130e8;p=thirdparty%2Fdovecot%2Fcore.git LIST: If reference parameter is given, get the namespace from it. --HG-- branch : HEAD --- diff --git a/src/imap/cmd-list.c b/src/imap/cmd-list.c index 0948aa7d63..90e64c66da 100644 --- a/src/imap/cmd-list.c +++ b/src/imap/cmd-list.c @@ -146,7 +146,7 @@ int _cmd_list_full(struct client *client, int lsub) } /* FIXME: really needs some work.. */ - ns = namespace_find(client->namespaces, mask); + ns = namespace_find(client->namespaces, *ref != '\0' ? ref : mask); if (ns != NULL) storage = ns->storage; else