[103] in Zephyr_Comments
zwrite patch suggestion
daemon@ATHENA.MIT.EDU (jik@ATHENA.MIT.EDU)
Mon Oct 10 19:46:02 1988
From: <jik@ATHENA.MIT.EDU>
Date: Mon, 10 Oct 88 19:45:48 EDT
To: zephyr-comments@ATHENA.MIT.EDU
The zwrite-signature facility of zwrite is neat, but I would like to
see zwrite automatically place a blank line in between the signature
line and the message text. It looks better.
The context diff below shows how to implement this -- it's a very
simple modification:
---cut here---
***************
*** 175,183 ****
message = NULL;
msgsize = 0;
if (signature) {
! message = malloc((unsigned)(strlen(signature)+sizeof("From: ")+2));
(void) strcpy(message, "From: ");
(void) strcat(message, signature);
msgsize = strlen(message)+1;
}
--- 175,184 ----
message = NULL;
msgsize = 0;
if (signature) {
! message = malloc((unsigned)(strlen(signature)+sizeof("From: ")+3));
(void) strcpy(message, "From: ");
(void) strcat(message, signature);
+ (void) strcat(message, "\n");
msgsize = strlen(message)+1;
}
---cut here---
--> Jonathan Kamens
Project Athena Watchmaker
SIPB (Student Information Processing Board) Member
Volunteer OLC Consultant
jik@ATHENA.MIT.EDU