If message(s) are deleted (moved to trash), and then the trash is emptied (adding the \Deleted
flag), the UI shows the messages with a "T" next to them, to indicate messages that have been deleted but not yet expunged.
If the mailbox is then expunged, the mailbox is reflected to show that it is now empty.
However, if additional mailboxes are first moved to the trash, such that when the expunge is done, some messages have the \Deleted
flag and some do not, the view of the mailbox does not update at all. The status is updated, i.e. the navigation shows the correct number of messages remaining and their size. This is because a STATUS is done after the EXPUNGE. However, we seem to miss the untagged EXPUNGE responses during the EXPUNGE command, since libetpan doesn't really provide access to untagged responses during a command. Manually doing that, e.g. using the log callback, is probably the only way to fix this "properly" without additional IMAP communication.
You must be