Skip to content

Instantly share code, notes, and snippets.

@carstene1ns
Created November 29, 2013 17:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carstene1ns/7709498 to your computer and use it in GitHub Desktop.
Save carstene1ns/7709498 to your computer and use it in GitHub Desktop.
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