From 871a316157ab0bd6e3516c8188a26ebaf76828c4 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 19 Oct 2018 10:57:56 +0000 Subject: [PATCH] Skip outbox messages for auto actions --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index a80c5c0e..f3b368dd 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -838,7 +838,8 @@ public class FragmentMessages extends FragmentEx { for (int i = 0; i < messages.size(); i++) { TupleMessageEx message = messages.get(i); if (!EntityFolder.ARCHIVE.equals(message.folderType) && - !EntityFolder.SENT.equals(message.folderType)) { + !EntityFolder.SENT.equals(message.folderType) && + !EntityFolder.OUTBOX.equals(message.folderType)) { autoCount++; single = message; if (!message.ui_seen) { @@ -868,7 +869,8 @@ public class FragmentMessages extends FragmentEx { for (int i = 0; i < messages.size(); i++) { TupleMessageEx message = messages.get(i); if (!EntityFolder.ARCHIVE.equals(message.folderType) && - !EntityFolder.SENT.equals(message.folderType)) { + !EntityFolder.SENT.equals(message.folderType) && + !EntityFolder.OUTBOX.equals(message.folderType)) { count++; } } @@ -900,7 +902,6 @@ public class FragmentMessages extends FragmentEx { } } }); - } private void handleExpand(long id) {