Skip to content
Permalink
Browse files

Insert a new line between the subject and message body when sending m…

…ail.

Required for RFC 2822 compliancy.

Reported by jrmu via IRC.
  • Loading branch information...
Robby- committed Aug 24, 2019
1 parent 8f7f4b1 commit d9de4ddd8295a4917b0b0b8260fc647b55ced683
Showing with 1 addition and 0 deletions.
  1. +1 −0 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");

0 comments on commit d9de4dd

Please sign in to comment.
You can’t perform that action at this time.