pull/194/merge
M66B 3 years ago
parent 3eaef74b3e
commit 9c7252eda0

@ -302,6 +302,7 @@ public class MessageHelper {
else
imessage.setHeader("Date", mdf.format(new Date(message.received)));
} else {
// https://datatracker.ietf.org/doc/html/rfc2822#section-3.6.6
ByteArrayInputStream bis = new ByteArrayInputStream(message.headers.getBytes());
Enumeration<Header> headers = new InternetHeaders(bis).getAllHeaders();
while (headers.hasMoreElements()) {

@ -712,13 +712,6 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
iservice.getTransport().sendMessage(imessage, to);
end = new Date().getTime();
EntityLog.log(this, "Sent " + via + " elapse=" + (end - start) + " ms");
if (BuildConfig.DEBUG) {
ByteArrayOutputStream bos = new ByteArrayOutputStream();
imessage.writeTo(bos);
for (String line : bos.toString().split("\n"))
Log.i("MMM " + line);
}
} catch (MessagingException ex) {
iservice.dump();
Log.e(ex);

Loading…
Cancel
Save