How to delete duplicate messages from both Mail app and iCloud mail.
I have duplicated emails (thousands - don't ask me why) in my iCloud mailbox. I've identified in apple discussions different ways to identify and remove duplicate mails (via apple scripts for instance, or some 3rd party cleaning apps) from the Mail library on my Mac, unfortunately this are processes which do not trigger sync with iCloud. It's like manually identify similar files in your mail library and get rid of them offline, but these changes are not cascaded up to the cloud. So the next time you sync or rebuild your mailbox, the duplicate emails will be downloaded again. I feel I'm missing something here. Does anybody think about a way (free or available on the store) to really clean up mail on both the local library and iCloud?
iMac 27″ 5K, macOS 11.1