git: 9front

Download patch

ref: d778775476419a5f882d0a9e4bd4d096293079b9
parent: 9d38818333332444334b2257ae8d9e15feac4a6e
author: Ori Bernstein <ori@eigenstate.org>
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)
--