+Mon Oct 19 20:52:55 EDT 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
+ * Client ability to force display of prompts in Mail rooms, even when
+ the user has prompting turned off (citadel.rc option)
1998-10-16 Nathan Bryant <bryant@cs.usm.maine.edu>
* sysdep.c (cprintf): generate a newline on truncated buffer
* room_ops.c: exploitable overrun fixes
#
display_message_numbers=0
+# The FORCE_MAIL_PROMPTS directive causes mail rooms to always display a
+# prompt after each message, even if the user has prompts turned off.
+#
+force_mail_prompts=1
+
# USE_FLOORS determines whether the user sees floors, or a flat room space.
# Set it to YES to always use floors, NO to never use floors, or DEFAULT
# to use the setting in the user's configuration (which is normally the case).
char rc_exp_cmd[256];
int rc_allow_attachments;
int rc_display_message_numbers;
+int rc_force_mail_prompts;
char *gl_string;
int next_lazy_cmd = 5;
rc_allow_attachments = 0;
strcpy(rc_exp_cmd, "");
rc_display_message_numbers = 0;
+ rc_force_mail_prompts = 0;
/* now try to open the citadel.rc file */
rc_display_message_numbers = atoi(&buf[24]);
}
+ if (!struncmp(buf,"force_mail_prompts=", 19)) {
+ rc_force_mail_prompts = atoi(&buf[19]);
+ }
+
if (!struncmp(buf,"username=",9))
strcpy(rc_username,&buf[9]);
extern char printcmd[];
extern int rc_allow_attachments;
extern int rc_display_message_numbers;
+extern int rc_force_mail_prompts;
extern int editor_pid;
printf("Message printed.\n");
}
if (e==3) return;
- if ((userflags&US_NOPROMPT)||(e==2)) e='n';
+ if ( ((userflags&US_NOPROMPT)||(e==2))
+ && (((room_flags&QR_MAILBOX)==0)
+ ||(rc_force_mail_prompts==0)) ) {
+ e='n';
+ }
else {
printf("(%d) ",num_msgs-a-1);
if (is_mail==1) printf("<R>eply ");