Re: mass removal of duplicates

Subject: Re: mass removal of duplicates

Date: Tue, 05 Aug 2025 07:03:44 -0300

To: Alan Schmitt, notmuch

Cc:

From: David Bremner


Alan Schmitt <alan.schmitt@polytechnique.org> writes:
>
> Unfortunately there seems to be too many messages, and after a while it
> fails:
>
> ❯ notmuch search --duplicate=2 --output=messages '*' | xargs -I % notmuch tag +dup %
> libc++abi: terminating due to uncaught exception of type Xapian::DatabaseModifiedError
> fish: Process 22685, 'notmuch' from job 1, 'notmuch search --duplicate=2 --…' terminated by signal SIGABRT (Abort)
>
> Some messages have been tagged, so I have something to start with.
>
> Alan

"notmuch tag --batch" is designed for this scenario, although you may
need to massage the input a bit using sed or awk
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: