Re: mass removal of duplicates

Subject: Re: mass removal of duplicates

Date: Mon, 04 Aug 2025 08:39:16 -0300

To: Alan Schmitt, notmuch

Cc:

From: David Bremner


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

> On 2025-07-31 14:27, Alan Schmitt <alan.schmitt@polytechnique.org> writes:
>
>> On 2025-07-31 07:51, David Bremner <david@tethera.net> writes:
>>
>>> With the caveat that it is always good to have backups, something like
>>>
>>>      notmuch search --duplicate=2 --output=files '*' | xargs rm
>>
>> This is a great start, thanks. I think I’ll build up on this to have a
>> tool that shows me the duplicates side by side so that I can choose
>> which one to keep.
>
> I have a couple followup questions. In emacs, how can I run a query of
> the form `notmuch search --duplicate=2 --output=messages '*''? I would
> like to see messages with duplicates from with emacs. I looked at the
> code for `notmuch-search' and could not find how to add the
> `--duplicate=2' option.

You may find the function notmuch-show-choose-duplicate (bound to % by
default) helpful. The info documentation is at (info "(notmuch-emacs)
Dealing with duplicates").
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: