View Issue Details

IDProjectCategoryView StatusLast Update
0001592Anope Stable (2.0.x series)Generalpublic2014-04-26 22:27
ReporterCMF2000 Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status newResolutionopen 
Summary0001592: Add MIME to email header
DescriptionEmails including non-US-ASCII characters (8-bit) are displayed with wrong encoding when your email client has set a different default encoding. Using MIME with quoted-printable helps to send 8-bit characters in a 7-bit encoded email.
TagsNo tags attached.

Activities

CMF2000

2014-04-26 22:27

reporter  

mail.cpp.patch (483 bytes)   
--- mail.cpp	2014-03-23 13:59:14.000000000 +0100
+++ mail.cpp	2014-04-22 10:43:38.000000000 +0200
@@ -42,6 +42,9 @@
 	else
 		fprintf(pipe, "To: \"%s\" <%s>\n", mail_to.c_str(), addr.c_str());
 	fprintf(pipe, "Subject: %s\n", subject.c_str());
+	fprintf(pipe, "MIME-Version: 1.0\n");
+	fprintf(pipe, "Content-Type: text/plain; charset=ISO-8859-1\n");
+	fprintf(pipe, "Content-Transfer-Encoding: quoted-printable\n");
 	fprintf(pipe, "%s", message.c_str());
 	fprintf(pipe, "\n.\n");
mail.cpp.patch (483 bytes)   

Issue History

Date Modified Username Field Change
2014-04-26 22:27 CMF2000 New Issue
2014-04-26 22:27 CMF2000 File Added: mail.cpp.patch