From d9de4ddd8295a4917b0b0b8260fc647b55ced683 Mon Sep 17 00:00:00 2001 From: Robby Date: Sat, 24 Aug 2019 07:37:35 +0200 Subject: [PATCH] Insert a new line between the subject and message body when sending mail. Required for RFC 2822 compliancy. Reported by jrmu via IRC. --- src/mail.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mail.cpp b/src/mail.cpp index 1ea24a8a8..b859e7c6f 100644 --- a/src/mail.cpp +++ b/src/mail.cpp @@ -41,6 +41,7 @@ void Mail::Message::Run() else fprintf(pipe, "To: \"%s\" <%s>\n", mail_to.c_str(), addr.c_str()); fprintf(pipe, "Subject: %s\n", subject.c_str()); + fprintf(pipe, "\n"); fprintf(pipe, "%s", message.c_str()); fprintf(pipe, "\n.\n");