From ecff97c902307437f491a3e660c50a1b37b5c6b5 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Thu, 6 Sep 2001 02:49:24 +0000 Subject: [PATCH] * Fixed paste-post mode (<.E>nter scii) to append instead of replace when the user hits ontinue (bug reported by Stu Mark) --- citadel/ChangeLog | 5 +++++ citadel/help/summary | 3 ++- citadel/messages.c | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/citadel/ChangeLog b/citadel/ChangeLog index 548fd583a..f05243580 100644 --- a/citadel/ChangeLog +++ b/citadel/ChangeLog @@ -1,4 +1,8 @@ $Log$ + Revision 580.32 2001/09/06 02:49:22 ajc + * Fixed paste-post mode (<.E>nter scii) to append instead of replace when + the user hits ontinue (bug reported by Stu Mark) + Revision 580.31 2001/09/06 01:26:39 nbryant - port to Cygwin (DLL support, etc.) - don't build SMTP module if there's no resolver library (eg on Windows) @@ -2709,3 +2713,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant Fri Jul 10 1998 Art Cancro * Initial CVS import + diff --git a/citadel/help/summary b/citadel/help/summary index db994ff1f..94ff37a79 100644 --- a/citadel/help/summary +++ b/citadel/help/summary @@ -52,7 +52,8 @@ commands are available: <.> nter essage Post a message in this room. <.> nter message with ditor Post using a full-screen editor. - <.> nter SCII message Post 'raw' (paste to host) + <.> nter SCII message Post 'raw' (use this when "pasting" + a message from your clipboard). <.> nter

assword Change your password. <.> nter onfiguration Change your 'preferences'. diff --git a/citadel/messages.c b/citadel/messages.c index 6167a8378..f79e6d27e 100644 --- a/citadel/messages.c +++ b/citadel/messages.c @@ -636,6 +636,7 @@ int make_message(char *filename, /* temporary file name */ if (mode == 1) { printf("(Press ctrl-d when finished)\n"); } + if (mode == 0) { fp = fopen(filename, "r"); if (fp != NULL) { @@ -669,7 +670,7 @@ ME1: switch (mode) { goto MECR; case 1: - fp = fopen(filename, "w"); + fp = fopen(filename, "a"); if (fp == NULL) { printf("*** Error opening temp file!\n" " %s: %s\n", -- 2.30.2