I've run imapsync and I have all my mail for all my users in place. The strange thing is that for some reason everyone's mail has duplicate folders within the Inbox as well as at the root below Inbox, Sent, Drafts, Junk, and Trash.

Any idea how to remove the duplicates across all of my users in one scripted command??