shithub: riscv

Download patch

ref: c8c97919b2b89a8eb5a7d52b03bfb8a634098faf
parent: 6383135fb64e443c8886f076f35e0e3a82f0a1dc
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Jan 14 16:12:24 EST 2023

upas/Mail: stop splitting headers

when sending messages, we do not merge headers, so
splitting headers the way we did leads to invalid
messages getting sent; stop doing it.

--- a/sys/src/cmd/upas/Mail/comp.c
+++ b/sys/src/cmd/upas/Mail/comp.c
@@ -210,11 +210,6 @@
 			continue;
 		w += Bprint(fd, "%s%s", sep, addrs[i]);
 		sep = ", ";
-		if(w > 50 && i < naddrs-1){
-			w = 0;
-			sep = "";
-			Bprint(fd, "\n%s: ", type);
-		}
 	}
 	Bprint(fd, "\n");
 }