shithub: Nail

Download patch

ref: a58c69571a720a672fef0123afc03c28066d059a
parent: 068c0954d49f78396ce930fcb472b54208b03858
author: Ori Bernstein <ori@eigenstate.org>
date: Thu Nov 5 11:59:47 EST 2020

fix initial response contents

--- a/comp.c
+++ b/comp.c
@@ -160,7 +160,7 @@
 	wintagwrite(c, "Delmesg Save Post ");
 	wfd = bwinopen(c, "body", OWRITE);
 	if(r == nil || !all)
-		Bprint(wfd, "To: %s", to);
+		Bprint(wfd, "To: %s\n", to);
 	else{
 		if(strlen(r->from) > 0)
 			Bprint(wfd, "To: %s\n", r->from);
@@ -177,7 +177,7 @@
 		c->rname = estrdup(r->name);
 		c->rdigest = estrdup(r->digest);
 		Bprint(wfd, "Subject: ");
-		if(r->subject != nil && cistrncmp(r->subject, "Re", 2) == 0)
+		if(r->subject != nil && cistrncmp(r->subject, "Re", 2) != 0)
 			Bprint(wfd, "Re: ");
 		Bprint(wfd, "%s\n\n", r->subject);
 		if(quote){