]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
LIST: If reference parameter is given, get the namespace from it.
authorTimo Sirainen <tss@iki.fi>
Tue, 6 Jan 2004 06:14:48 +0000 (08:14 +0200)
committerTimo Sirainen <tss@iki.fi>
Tue, 6 Jan 2004 06:14:48 +0000 (08:14 +0200)
--HG--
branch : HEAD

src/imap/cmd-list.c

index 0948aa7d63302d06500e99bf9ce6e20e6448a88b..90e64c66dab53a539db4d34c1363814be62c7638 100644 (file)
@@ -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