mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-04 06:20:26 +00:00
Added send dump
This commit is contained in:
parent
99217fa948
commit
96da5e018c
1 changed files with 5 additions and 2 deletions
|
@ -660,8 +660,9 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
|
||||||
// Create transport
|
// Create transport
|
||||||
long start, end;
|
long start, end;
|
||||||
Long max_size = null;
|
Long max_size = null;
|
||||||
try (EmailService iservice = new EmailService(
|
EmailService iservice = new EmailService(
|
||||||
this, ident.getProtocol(), ident.realm, ident.encryption, ident.insecure, debug)) {
|
this, ident.getProtocol(), ident.realm, ident.encryption, ident.insecure, debug);
|
||||||
|
try {
|
||||||
iservice.setUseIp(ident.use_ip, ident.ehlo);
|
iservice.setUseIp(ident.use_ip, ident.ehlo);
|
||||||
iservice.setUnicode(ident.unicode);
|
iservice.setUnicode(ident.unicode);
|
||||||
|
|
||||||
|
@ -711,6 +712,7 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
|
||||||
end = new Date().getTime();
|
end = new Date().getTime();
|
||||||
EntityLog.log(this, "Sent " + via + " elapse=" + (end - start) + " ms");
|
EntityLog.log(this, "Sent " + via + " elapse=" + (end - start) + " ms");
|
||||||
} catch (MessagingException ex) {
|
} catch (MessagingException ex) {
|
||||||
|
iservice.dump();
|
||||||
Log.e(ex);
|
Log.e(ex);
|
||||||
|
|
||||||
if (ex instanceof SMTPSendFailedException) {
|
if (ex instanceof SMTPSendFailedException) {
|
||||||
|
@ -732,6 +734,7 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
|
||||||
|
|
||||||
throw ex;
|
throw ex;
|
||||||
} finally {
|
} finally {
|
||||||
|
iservice.close();
|
||||||
if (lastProgress >= 0) {
|
if (lastProgress >= 0) {
|
||||||
lastProgress = -1;
|
lastProgress = -1;
|
||||||
nm.notify(NotificationHelper.NOTIFICATION_SEND, getNotificationService().build());
|
nm.notify(NotificationHelper.NOTIFICATION_SEND, getNotificationService().build());
|
||||||
|
|
Loading…
Reference in a new issue