Skip to content

Commit

Permalink
Insert a new line between the subject and message body when sending m…
Browse files Browse the repository at this point in the history
…ail.

Required for RFC 2822 compliancy.

Reported by jrmu via IRC.
  • Loading branch information
Robby- committed Aug 24, 2019
1 parent 8f7f4b1 commit d9de4dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mail.cpp
Expand Up @@ -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");

Expand Down

0 comments on commit d9de4dd

Please sign in to comment.