diff options
author | Ori Bernstein <ori@eigenstate.org> | 2021-04-17 18:46:02 -0700 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2021-04-17 18:46:02 -0700 |
commit | 9923ea348c75bf33754508e9d2a61e537e7c79d1 (patch) | |
tree | d7c9c3fe804c1eafd7386371c1e58f8bc1ae692f | |
parent | 0256a34560a58c7fffe4a83476efd03d64c9a783 (diff) | |
download | plan9front-9923ea348c75bf33754508e9d2a61e537e7c79d1.tar.xz |
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.
-rw-r--r-- | sys/src/cmd/upas/Mail/comp.c | 3 |
1 files changed, 0 insertions, 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) |