mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-03 23:56:07 +02:00
Added resend (experimental)
This commit is contained in:
@@ -45,6 +45,7 @@ import com.sun.mail.smtp.SMTPSendFailedException;
|
||||
import com.sun.mail.smtp.SMTPTransport;
|
||||
import com.sun.mail.util.TraceOutputStream;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
@@ -711,6 +712,13 @@ 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);
|
||||
|
||||
Reference in New Issue
Block a user