BastliBridge

A bot framework bridgin multiple IM protocols, and mail
git clone git://xatko.vsos.ethz.ch/BastliBridge.git
Log | Files | Refs | Submodules

commit a082eb2f4b3cd31185490dc6bf197a2c80d95efa
parent 9739ecf23c1b6abc51f55ee3b90ba05c7c448f9f
Author: Dominik Schmidt <das1993@hotmail.com>
Date:   Wed,  7 Nov 2018 14:53:52 +0100

Include author name in mail messages

Diffstat:
src/bastlibridge/interfaces/mail.d | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bastlibridge/interfaces/mail.d b/src/bastlibridge/interfaces/mail.d @@ -36,7 +36,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, "Content-Type: text/plain; charset=utf-8\nTo: %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\nAuthor: %s", c._name, m.getChannelName, m.getMessage(), m.userName()); trace("Text written to stdin"); pipe.stdin.close(); pipe.stdout.close();