CLI tool to find out duplicate mails in a folder
To dump filenames of duplicated mail messages and statistics of the search in the same directory.
export MAILBOX_SEARCH_IS_DRY_RUN=true
mailbox-duplicate-search
To delete all the duplicated mail messages in the same directory.
export MAILBOX_SEARCH_IS_DRY_RUN=false
rm $(mailbox-duplicate-search)
If you have Go installed, all you need is go get github.com/alexhokl/mailbox-duplicate-search
.
Download binary from release page and put the binary in one of the directories
specified in PATH
enviornment variable.