mirror of https://github.com/M66B/FairEmail.git
Raw send failed exception
This commit is contained in:
parent
612c252313
commit
b882b821a7
|
@ -391,6 +391,8 @@ public class ServiceSend extends LifecycleService {
|
||||||
NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
|
NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
|
||||||
nm.cancel("send", message.identity.intValue());
|
nm.cancel("send", message.identity.intValue());
|
||||||
} catch (MessagingException ex) {
|
} catch (MessagingException ex) {
|
||||||
|
// Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 554 Refused. Sending to remote addresses (relaying) is not allowed.
|
||||||
|
/*
|
||||||
if (ex instanceof SendFailedException) {
|
if (ex instanceof SendFailedException) {
|
||||||
SendFailedException sfe = (SendFailedException) ex;
|
SendFailedException sfe = (SendFailedException) ex;
|
||||||
|
|
||||||
|
@ -414,7 +416,7 @@ public class ServiceSend extends LifecycleService {
|
||||||
sfe.getValidUnsentAddresses(),
|
sfe.getValidUnsentAddresses(),
|
||||||
sfe.getInvalidAddresses());
|
sfe.getInvalidAddresses());
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
db.identity().setIdentityError(ident.id, Helper.formatThrowable(ex));
|
db.identity().setIdentityError(ident.id, Helper.formatThrowable(ex));
|
||||||
|
|
||||||
EntityLog.log(this, ident.name + " last attempt: " + new Date(message.last_attempt));
|
EntityLog.log(this, ident.name + " last attempt: " + new Date(message.last_attempt));
|
||||||
|
|
Loading…
Reference in New Issue