Missing newlines from CC: and BCC: headers (#817).
authorCarl Hetherington <cth@carlh.net>
Sat, 12 Mar 2016 01:17:15 +0000 (01:17 +0000)
committerCarl Hetherington <cth@carlh.net>
Sat, 12 Mar 2016 01:17:15 +0000 (01:17 +0000)
src/lib/emailer.cc

index 78cbfea8d3fae2fddb67e8162ae98797ecf870fe..df254df24da3f86e8e450e3f68452e2a2681edf6 100644 (file)
@@ -108,11 +108,11 @@ Emailer::send (string server, int port, string user, string password)
              << "From: " << _from << "\r\n";
 
        if (!_cc.empty ()) {
-               email << "Cc: " << address_list (_cc);
+               email << "Cc: " << address_list (_cc) << "\r\n";
        }
 
        if (!_bcc.empty ()) {
-               email << "Bcc: " << address_list (_bcc);
+               email << "Bcc: " << address_list (_bcc) << "\r\n";
        }
 
        string const chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";