[dovecot-cvs] dovecot/src/imap cmd-list.c,1.6,1.7
cras at procontrol.fi
cras at procontrol.fi
Wed Dec 4 02:27:12 EET 2002
Update of /home/cvs/dovecot/src/imap
In directory danu:/tmp/cvs-serv30435
Modified Files:
cmd-list.c
Log Message:
Send INBOX always uppercased with LIST and LSUB.
Index: cmd-list.c
===================================================================
RCS file: /home/cvs/dovecot/src/imap/cmd-list.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- cmd-list.c 3 Dec 2002 22:44:39 -0000 1.6
+++ cmd-list.c 4 Dec 2002 00:27:09 -0000 1.7
@@ -98,8 +98,13 @@
for (; node != NULL; node = node->next) {
t_push();
- name = path == NULL ? node->name :
- t_strconcat(path, sep, node->name, NULL);
+ /* Send INBOX always uppercased */
+ if (path != NULL)
+ name = t_strconcat(path, sep, node->name, NULL);
+ else if (strcasecmp(node->name, "INBOX") == 0)
+ name = "INBOX";
+ else
+ name = node->name;
if (node->children != NULL)
list_send(client, node->children, cmd, name, sep, glob);
More information about the dovecot-cvs
mailing list