diff options
author | Sadie Powell <sadie@witchery.services> | 2024-04-04 19:59:19 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-04-04 19:59:19 +0100 |
commit | 00549bc9b2a4e377ad309b1ecd241057ac84b250 (patch) | |
tree | 734a9699b6cf3f7c69f0f993150e954dd8f88b27 /src | |
parent | e0a6f7456b58fa38e1d8f3b34a7aa50035650de6 (diff) | |
parent | d41764bfd6b22417ac5ff4993c4f8961e20f58c6 (diff) |
Merge branch '2.0' into 2.1.
Diffstat (limited to 'src')
-rw-r--r-- | src/mail.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mail.cpp b/src/mail.cpp index 36b871437..172b7a5fe 100644 --- a/src/mail.cpp +++ b/src/mail.cpp @@ -48,7 +48,7 @@ void Mail::Message::Run() if (this->dont_quote_addresses) fprintf(pipe, "To: %s <%s>\r\n", mail_to.c_str(), addr.c_str()); else - fprintf(pipe, "To: \"%s\" <%s>\r\n", mail_to.c_str(), addr.c_str()); + fprintf(pipe, "To: \"%s\" <%s>\r\n", mail_to.replace_all_cs("\\", "\\\\").c_str(), addr.c_str()); fprintf(pipe, "Subject: %s\r\n", subject.c_str()); fprintf(pipe, "Content-Type: %s\r\n", content_type.c_str()); fprintf(pipe, "Content-Transfer-Encoding: 8bit\r\n"); |