]> code.citadel.org Git - citadel.git/blobdiff - citadel/imap_tools.c
* One more fix for the RENAME command wrt namespaces.
[citadel.git] / citadel / imap_tools.c
index f6c66689aead2784718422cd96d4f8173f69e364..d14f97ead758e437e8389f426b3f26669f30f02e 100644 (file)
@@ -140,7 +140,6 @@ int imap_roomname(char *rbuf, int bufsize, char *foldername)
        int levels;
        char floorname[SIZ];
        char roomname[SIZ];
-       char buf[SIZ];
        int i;
        struct floor *fl;
        int ret = (-1);
@@ -185,12 +184,16 @@ int imap_roomname(char *rbuf, int bufsize, char *foldername)
                if (rbuf[i] == '|') rbuf[i] = '/';
        }
 
+
+/*** This doesn't work.
+       char buf[SIZ];
        if (ret & IR_MAILBOX) {
                if (atol(rbuf) == 0L) {
                        strcpy(buf, rbuf);
                        sprintf(rbuf, "%010ld.%s", CC->usersupp.usernum, buf);
                }
        }
+ ***/
 
        lprintf(9, "(That translates to \"%s\")\n", rbuf);
        return(ret);