commit 9e83058243bfaeb38e3e044949394bb1cef8eb80
parent 8106197c94f05fc72a47c58324960102790066f4
Author: Dominik Schmidt <dominik@schm1dt.ch>
Date: Sun, 21 Oct 2018 18:59:10 +0200
Add the charset to mails sent
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/bastlibridge/interfaces/mail.d b/src/bastlibridge/interfaces/mail.d
@@ -31,7 +31,7 @@ final class Mail: Endpoint{
trace("Sending mail to ", c._name, " with command \"", shellcmd, `"`);
auto pipe=pipeShell(shellcmd);
trace("Process ", pipe.pid, " opened");
- formattedWrite(pipe.stdin.lockingTextWriter, "To: %s\nSubject: New message on %s\n\n%s", c._name, m.getChannelName, m.getMessage());
+ formattedWrite(pipe.stdin.lockingTextWriter, "Content-Type: text/plain; charset=utf-8\nTo: %s\nSubject: New message on %s\n\n%s", c._name, m.getChannelName, m.getMessage());
trace("Text written to stdin");
pipe.stdin.close();
pipe.stdout.close();