$Log$
+ Revision 590.151 2002/03/13 03:58:29 ajc
+ * Site-configurable option "Allow system Aides to gain access to mailboxes"
+
Revision 590.150 2002/03/13 03:34:38 nbryant
/* when running in curses mode, the scroll bar in most
xterm-style programs becomes useless, so it makes sense to
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
int c_imap_port; /* IMAP listener port (usually 143) */
time_t c_net_freq; /* how often to run the networker */
char c_disable_newu; /* disable NEWU command */
+ char c_aide_mailboxes; /* give Aides access to mailboxes */
};
#define NODENAME config.c_nodename
cprintf("%d\n", config.c_imap_port);
cprintf("%ld\n", config.c_net_freq);
cprintf("%d\n", config.c_disable_newu);
+ cprintf("%d\n", config.c_aide_mailboxes);
cprintf("000\n");
}
if (config.c_disable_newu != 0)
config.c_disable_newu = 1;
break;
+ case 30: config.c_aide_mailboxes = atoi(buf);
+ if (config.c_aide_mailboxes != 0)
+ config.c_aide_mailboxes = 1;
+ break;
}
++a;
}
retval = retval & ~UA_KNOWN & ~UA_GOTOALLOWED;
}
- /* Aides get access to everything */
+ /* Aides get access to all private rooms */
if ( (userbuf->axlevel >= 6)
&& ((roombuf->QRflags & QR_MAILBOX) == 0) ) {
if (vbuf.v_flags & V_FORGET) {
retval = retval | UA_GOTOALLOWED;
}
+ else {
+ retval = retval | UA_KNOWN | UA_GOTOALLOWED;
+ }
+ }
+
+ /* On some systems, Aides can gain access to mailboxes as well */
+ if ( (config.c_aide_mailboxes)
+ && (userbuf->axlevel >= 6)
+ && (roombuf->QRflags & QR_MAILBOX) ) {
+ retval = retval | UA_GOTOALLOWED;
}
NEWMSG: /* By the way, we also check for the presence of new messages */
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;
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;
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;
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");
}