]> code.citadel.org Git - citadel.git/blobdiff - citadel/routines2.c
* Site-configurable option "Allow system Aides to gain access to mailboxes"
[citadel.git] / citadel / routines2.c
index e66ac3ce0deb2a7256fb6e01e883083ee41a8083..c38531e4260b3377d9b45612683f8e2635c87d1c 100644 (file)
@@ -690,7 +690,7 @@ void read_bio(void)
 void do_system_configuration(void)
 {
        char buf[SIZ];
-       char sc[30][SIZ];
+       char sc[31][SIZ];
        int expire_mode = 0;
        int expire_value = 0;
        int a;
@@ -705,7 +705,7 @@ void do_system_configuration(void)
        if (buf[0] == '1') {
                a = 0;
                while (serv_gets(buf), strcmp(buf, "000")) {
-                       if (a < 30) {
+                       if (a < 31) {
                                strcpy(&sc[a][0], buf);
                        }
                        ++a;
@@ -761,6 +761,9 @@ void do_system_configuration(void)
        snprintf(sc[26], sizeof sc[26], "%d", (boolprompt(
              "Allow Aides to Zap (forget) rooms",
                                                     atoi(&sc[26][0]))));
+       snprintf(sc[30], sizeof sc[29], "%d", (boolprompt(
+             "Allow system Aides access to user mailboxes",
+                                                    atoi(&sc[30][0]))));
 
        if (strlen(&sc[18][0]) > 0) logpages = 1;
        else logpages = 0;
@@ -825,7 +828,7 @@ void do_system_configuration(void)
                serv_puts("CONF set");
                serv_gets(buf);
                if (buf[0] == '4') {
-                       for (a = 0; a < 30; ++a)
+                       for (a = 0; a < 31; ++a)
                                serv_puts(&sc[a][0]);
                        serv_puts("000");
                }