mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 19:52:17 -05:00
Split out "tempfail" and "permfail" message deliver errors
This commit is contained in:
parent
c305397d05
commit
d80a941dba
@ -2889,11 +2889,17 @@ public class MessagingController implements Runnable {
|
||||
notifMgr.notify(K9.FETCHING_EMAIL_NOTIFICATION - account.getAccountNumber(), notif);
|
||||
}
|
||||
|
||||
private void notifySendFailed(Account account, Exception lastFailure) {
|
||||
private void notifySendTempFailed(Account account, Exception lastFailure) {
|
||||
notifySendFailed(account, lastFailure, account.getOutboxFolderName());
|
||||
}
|
||||
private void notifySendPermFailed(Account account, Exception lastFailure) {
|
||||
notifySendFailed(account, lastFailure, account.getDraftsFolderName());
|
||||
}
|
||||
private void notifySendFailed(Account account, Exception lastFailure, String openFolder) {
|
||||
NotificationManager notifMgr = (NotificationManager)mApplication.getSystemService(Context.NOTIFICATION_SERVICE);
|
||||
Notification notif = new Notification(R.drawable.stat_notify_email_generic, mApplication.getString(R.string.send_failure_subject), System.currentTimeMillis());
|
||||
|
||||
Intent i = FolderList.actionHandleNotification(mApplication, account, account.getOutboxFolderName());
|
||||
Intent i = FolderList.actionHandleNotification(mApplication, account, openFolder);
|
||||
|
||||
PendingIntent pi = PendingIntent.getActivity(mApplication, 0, i, 0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user