Is there a way to exclude deleted items from the unread mail count in Smart Folders?

If emails could automatically be marked as read when deleting, that would exclude them from the smart folder.

See thread: https://forum.emclient.com/emclient/topics/mark-mails-as-read-when-deleting