Outbox Refreshes Once Mail Sends But Leaves Numbers With Empty Outbox
Please search to check for an existing issue (including closed issues, for which the fix may not have yet been released) before opening a new issue: https://github.com/k9mail/k-9/issues?q=is%3Aissue

If you are unsure whether or not you have found a bug please post to the support forum instead: https://forum.k9mail.app

**Describe the bug**

Outbox numeric counts says there is items being sent when the outbox is empty. Only way to remove it is by refreshing the inbox or other folder.

**To Reproduce**

1. Send mail
2. Outbox contains being sent mail and once refreshes it still contains numeric count on empty outbox
3. Refresh inbox or other folder. Refreshing outbox doesn't fix it. 
4. See error fixed in numeric count on outbox

**Expected behavior**

No numeric count on empty outbox. A refresh shouldn't need to be done on other folder to get numeric count gone on empty outbox. 

**Screenshots**

None

**Environment (please complete the following information):**
 - K-9 Mail version: 5.907
 - Android version: 10
 - Device: Galaxy S9 +
 - Account type: IMAP (Does on POP3 too)

**Additional context**

None

**Logs**

None


diff --git a/app/core/src/main/java/com/fsck/k9/controller/MessagingController.java b/app/core/src/main/java/com/fsck/k9/controller/MessagingController.java
index 3e1a70258..ba4ca011e 100644
--- a/app/core/src/main/java/com/fsck/k9/controller/MessagingController.java
+++ b/app/core/src/main/java/com/fsck/k9/controller/MessagingController.java
@@ -1662,6 +1662,10 @@ public class MessagingController {
                 processPendingCommands(account);
             }
         }
+
+        for (MessagingListener listener : getListeners()) {
+            listener.folderStatusChanged(account, account.getOutboxFolderId());
+        }
     }
 
     private void handleSendFailure(Account account, LocalFolder localFolder, Message message, Exception exception)
['app/core/src/main/java/com/fsck/k9/controller/MessagingController.java']