SusiMail: Fix header corruption (ticket #2139)

This commit is contained in:
zzz
2018-01-24 13:27:28 +00:00
parent 709657e2c6
commit 2df32aa8e5
3 changed files with 6 additions and 3 deletions

View File

@ -2346,10 +2346,10 @@ public class WebMail extends HttpServlet
}
String boundary = "_=" + I2PAppContext.getGlobalContext().random().nextLong();
if (multipart) {
body.append( "\r\nMIME-Version: 1.0\r\nContent-type: multipart/mixed; boundary=\"" + boundary + "\"\r\n\r\n" );
body.append( "MIME-Version: 1.0\r\nContent-type: multipart/mixed; boundary=\"" + boundary + "\"\r\n\r\n" );
}
else {
body.append( "\r\nMIME-Version: 1.0\r\nContent-type: text/plain; charset=\"utf-8\"\r\nContent-Transfer-Encoding: quoted-printable\r\n\r\n" );
body.append( "MIME-Version: 1.0\r\nContent-type: text/plain; charset=\"utf-8\"\r\nContent-Transfer-Encoding: quoted-printable\r\n\r\n" );
}
try {
// TODO pass the text separately to SMTP and let it pick the encoding

View File

@ -1,3 +1,6 @@
2018-01-24 zzz
* SusiMail: Fix header corruption (ticket #2139)
2018-01-19 zzz
* i2ptunnel: Prevent changing sigtype after dest creation (ticket #2128)

View File

@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */
public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 23;
public final static long BUILD = 24;
/** for example "-test" */
public final static String EXTRA = "-rc";