* control.c: create citadel.control if it doesn't exist (yikes!)
[citadel.git] / citadel / user_ops.c
index 46a647f8beae8d9e6cea895e0573b59a32409f8c..b29c6aecc408010ee9caa8866875a352631c8e93 100644 (file)
@@ -501,11 +501,16 @@ int purge_user(char pname[]) {
        /* delete any existing user/room relationships */
        cdb_delete(CDB_VISIT, &usbuf.usernum, sizeof(long));
 
-       /* Delete the user's mailbox and its contents */
-       MailboxName(mailboxname, &usbuf, MAILROOM);
-       if (getroom(&qrbuf, mailboxname)==0) {
-               delete_room(&qrbuf);
-               }
+       /* Delete the user's mailbox and its contents 
+        * (This is commented out because we don't do it here anymore.  Since
+        * the user may have any number of mailboxes, we now purge them the
+        * next time an "EXPI rooms" command is executed.)
+        * 
+        * MailboxName(mailboxname, &usbuf, MAILROOM);
+        * if (getroom(&qrbuf, mailboxname)==0) {
+        *      delete_room(&qrbuf);
+        *      }
+        */
 
        /* delete the userlog entry */
        cdb_delete(CDB_USERSUPP, lowercase_name, strlen(lowercase_name));