Raw send failed exception

This commit is contained in:
M66B 2019-05-13 21:20:09 +02:00
parent 612c252313
commit b882b821a7
1 changed files with 3 additions and 1 deletions

View File

@ -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));