shithub: riscv

Download patch

ref: 9923ea348c75bf33754508e9d2a61e537e7c79d1
parent: 0256a34560a58c7fffe4a83476efd03d64c9a783
author: Ori Bernstein <[email protected]>
date: Sat Apr 17 14:46:02 EDT 2021

Mail: remove impliicit headers (thanks unobe)

Setting headers from Mail can cause conflicts
with the headers that upas/marshal adds when
sending attachments.

So, let's not set them.

--- a/sys/src/cmd/upas/Mail/comp.c
+++ b/sys/src/cmd/upas/Mail/comp.c
@@ -67,9 +67,6 @@
 	chanfree(c->sync);
 	close(c->fd[0]);
 
-	/* needed because mail is by default Latin-1 */
-	fprint(c->fd[1], "Content-Type: text/plain; charset=\"UTF-8\"\n");
-	fprint(c->fd[1], "Content-Transfer-Encoding: 8bit\n");
 	buf = emalloc(Bufsz);
 	while((n = read(fd, buf, Bufsz)) > 0)
 		if(write(c->fd[1], buf, n) != n)