How can I get rid of duplicate Sent, Draft, and Trash folders in my IMAP accounts?
Set Mail to use your operator’s folders by opening them and selecting Mailbox>Use this mailbox for>[folder function].
Move all messages from old folders to the new ones
Delete the old, now empty folders.