mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-25 15:32:52 +00:00
Cleanup
This commit is contained in:
parent
3eaef74b3e
commit
9c7252eda0
2 changed files with 1 additions and 7 deletions
|
@ -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…
Reference in a new issue