1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 11:42:16 -05:00

Don't append "null" to the "MAIL FROM" line in case the server doesn't support 8BITMIME

This commit is contained in:
cketti 2013-09-06 20:28:46 +02:00
parent a7c9804995
commit aaa0de4dbc

View File

@ -493,7 +493,7 @@ public class SmtpTransport extends Transport {
Address[] from = message.getFrom(); Address[] from = message.getFrom();
try { try {
executeSimpleCommand("MAIL FROM:" + "<" + from[0].getAddress() + ">" executeSimpleCommand("MAIL FROM:" + "<" + from[0].getAddress() + ">"
+ (m8bitEncodingAllowed ? " BODY=8BITMIME" : null)); + (m8bitEncodingAllowed ? " BODY=8BITMIME" : ""));
for (String address : addresses) { for (String address : addresses) {
executeSimpleCommand("RCPT TO:" + "<" + address + ">"); executeSimpleCommand("RCPT TO:" + "<" + address + ">");
} }