$Log$
+ Revision 591.103 2002/08/27 04:01:03 ajc
+ * Added the ability to run an external command from the client when new mail
+ arrives. (Ok, I admit it: I just discovered http://www.dailywav.com and I
+ just *had* to have Bear in the Big Blue House tell me I've got mail)
+
Revision 591.102 2002/08/26 02:55:09 ajc
* Small bugfix for memory bounds checking in the MIME parser
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
+
newmailcount);
}
color(DIM_WHITE);
+ if (strlen(rc_gotmail_cmd) > 0) {
+ system(rc_gotmail_cmd);
+ }
}
status_line(serv_info.serv_humannode, serv_info.serv_bbs_city,
room_name, secure, newmailcount);
if (b > 1)
scr_printf("*** You have %d new private messages in Mail>\n", b);
color(DIM_WHITE);
+ if (strlen(rc_gotmail_cmd) > 0) {
+ system(rc_gotmail_cmd);
+ }
}
if ((axlevel >= 6) && (chek.needvalid > 0)) {
scr_printf("*** Users need validation\n");
#
#urlcmd=netscape -remote "openURL(%s)"
+# If GOTMAILCMD is defined, the specified command will be executed. This
+# might be nice for playing sounds or providing any other type of notification.
+#
+#gotmailcmd=play gotmail.wav
+
# MESSAGE READING SEMANTICS (experimental)
#
time_t rc_idle_threshold = (time_t)900;
char urls[MAXURLS][SIZ];
char rc_url_cmd[SIZ];
+char rc_gotmail_cmd[SIZ];
char *gl_string;
int next_lazy_cmd = 5;
rc_force_mail_prompts = 0;
rc_ansi_color = 0;
strcpy(rc_url_cmd, "");
+ strcpy(rc_gotmail_cmd, "");
#ifdef HAVE_OPENSSL
rc_encrypt = RC_DEFAULT;
#endif
if (!strncasecmp(buf, "urlcmd=", 7))
strcpy(rc_url_cmd, &buf[7]);
+ if (!strncasecmp(buf, "gotmailcmd=", 11))
+ strcpy(rc_gotmail_cmd, &buf[11]);
+
if (!strncasecmp(buf, "alternate_semantics=", 20)) {
if (!strncasecmp(&buf[11], "yes", 3))
rc_alt_semantics = 1;
extern int num_urls;
extern char urls[MAXURLS][SIZ];
extern char rc_url_cmd[SIZ];
+extern char rc_gotmail_cmd[SIZ];
extern int lines_printed;
extern int rc_remember_passwords;