Skip to content

Instantly share code, notes, and snippets.

View carstene1ns's full-sized avatar

Carsten Teibes carstene1ns

View GitHub Profile
@carstene1ns
carstene1ns / recursive maildir-deduplicate
Created November 29, 2013 17:52
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 {} +