From 9923ea348c75bf33754508e9d2a61e537e7c79d1 Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Sat, 17 Apr 2021 18:46:02 -0700 Subject: [PATCH] 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. --- sys/src/cmd/upas/Mail/comp.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/src/cmd/upas/Mail/comp.c b/sys/src/cmd/upas/Mail/comp.c index d4e496928..bdf8c7aab 100644 --- a/sys/src/cmd/upas/Mail/comp.c +++ b/sys/src/cmd/upas/Mail/comp.c @@ -67,9 +67,6 @@ postmesg(Comp *c, char **, int nf) 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)