Created
November 29, 2013 17:52
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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