]> git.lizzy.rs Git - plan9front.git/commitdiff
Mail: remove impliicit headers (thanks unobe)
authorOri Bernstein <ori@eigenstate.org>
Sun, 18 Apr 2021 01:46:02 +0000 (18:46 -0700)
committerOri Bernstein <ori@eigenstate.org>
Sun, 18 Apr 2021 01:46:02 +0000 (18:46 -0700)
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

index d4e496928e0506cbb566c9202573aff6dd8b1671..bdf8c7aabeac9c910547ed93136522f53369b821 100644 (file)
@@ -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)