ref: 3206f8877f32b4559c053446cec774ab42d33f96
parent: 26170ca8394267eafab091e6d42f1b00c00a200f
author: Ori Bernstein <[email protected]>
date: Thu Jan 28 14:46:45 EST 2021
comp: when sending, set mark messages as unicode. There is only utf8.
--- a/comp.c
+++ b/comp.c
@@ -67,6 +67,9 @@
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)