Re: mass removal of duplicates

Subject: Re: mass removal of duplicates

Date: Thu, 31 Jul 2025 07:51:13 -0300

To: Alan Schmitt, notmuch

Cc:

From: David Bremner


Alan Schmitt <alan.schmitt@polytechnique.org> writes:

> After changing the SyncState of my mbsync configuration, I ended up with
> all my messages duplicated. This causes no problem to notmuch (as there
> is a single message shown), but I would like to reclaim the disk space
> (which is significant as all my messages where duplicated). Is there a
> way to do this using notmuch (as it is already identifying duplicates),
> or do you recommend another tool (maybe a file deduplication tool)?

With the caveat that it is always good to have backups, something like

     notmuch search --duplicate=2 --output=files '*' | xargs rm

_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: