I'm using wanderlust under emacs 25.x.
I know that wanderlust properly expunges messages on the IMAP server when I delete them.
However, I have other IMAP clients (for example, the one I use on my Android device) which don't seem to properly expunge deleted messages on the same IMAP server.
Is there a way I can add some functionality to wanderlust so that when I invoke
wl-folder-check-all or some similar function, it will perform an expunge upon all messages in all folders that it checks?
To be clear, I'm talking about messages that are already marked as deleted, and which don't show up in the wanderlust summary buffer. But they contribute to the total message count, because the other email client(s) haven't properly expunged them after deletion. My goal is to get wanderlust to expunge all these deleted-but-not-yet-expunged messages, so that they don't contribute to the total message count.
I haven't been able to find the WL function(s) necessary for performing this expunge.
Thank you in advance.