Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
After migrating from google mail, I had a bunch of mails more than once. It happens because gmail uses tags that are converted to folders when moving with imapsync. The following one-liner shows (and optionally removes without '-n') all duplicated mails.
find $HOME/Maildir -type d -not \( -path "*/cur" -or -path "*/new" -or -path "*/tmp" -or -path "*/.Trash" \) -exec ./maildir-deduplicate.py -n {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.