"reply_with_external_editor" in citadel.rc.
$Log$
+ Revision 610.22 2003/10/17 02:18:40 ajc
+ * Replaced the DEFAULT_ENTRY definition in sysconfig.h with a new option
+ "reply_with_external_editor" in citadel.rc.
+
Revision 610.21 2003/10/14 03:09:47 ajc
* routines2.c: fixed an off-by-one error in filename sanitization for
client file uploads
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
alternate_semantics=no
+# When the user hits the <R>eply key after reading a message, reply_with_editor
+# selects whether it uses the built-in editor (select 'no') or an external
+# editor (select 'yes').
+#
+reply_with_external_editor=no
+
+
# COMMAND SET CONFIGURATION
#
# All lines starting with "cmd=" are considered to be commands. This allows
extern char arg_screen;
#endif
extern char rc_alt_semantics;
+extern char rc_reply_extedit;
extern char express_msgs;
void logoff(CtdlIPC *ipc, int code);
void formout(CtdlIPC *ipc, char *name);
rc_force_mail_prompts = 0;
rc_ansi_color = 0;
rc_color_use_bg = 0;
+ rc_reply_extedit = 0;
strcpy(rc_url_cmd, "");
strcpy(rc_gotmail_cmd, "");
#ifdef HAVE_OPENSSL
rc_alt_semantics = 0;
}
}
+ if (!strncasecmp(buf, "reply_with_external_editor=", 27)) {
+ if (!strncasecmp(&buf[27], "yes", 3)) {
+ rc_reply_extedit = 1;
+ }
+ else {
+ rc_reply_extedit = 0;
+ }
+ }
if (!strncasecmp(buf, "cmd=", 4)) {
strcpy(buf, &buf[4]);
int msg_arr_size = 0;
int num_msgs;
char rc_alt_semantics;
+char rc_reply_extedit;
extern char room_name[];
extern unsigned room_flags;
extern long highest_msg_read;
goto RMSGREAD;
case 'r':
savedpos = num_msgs;
- entmsg(ipc, 1, (DEFAULT_ENTRY == 46 ? 2 : 0));
+ entmsg(ipc, 1, (rc_reply_extedit ? 2 : 0));
num_msgs = savedpos;
goto RMSGREAD;
case 'u':
*/
#define S_KEEPALIVE 30
-/*
- * This is the command that gets executed when a user hits <E>nter message:
- * presses the <E>nter message key. The possible values are:
- * 4 - .<E>nter <M>essage
- * 46 - .<E>nter message with <E>ditor
- * 36 - .<E>nter message with <A>scii
- * Normally, this value will be set to 4, to cause the <E>nter message
- * command to run Citadel's built-in editor. However, if you have an external
- * editor installed, and you want to make it the default, set this to 46
- * to make it use your editor by default.
- */
-#define DEFAULT_ENTRY 4
-
-
/*
* Logging level to use if none is specified on the command line.
*/