* remove duplicates from a group
@ 2023-10-18 6:49 Julien Cubizolles
2023-10-18 15:38 ` Eric Abrahamsen
0 siblings, 1 reply; 4+ messages in thread
From: Julien Cubizolles @ 2023-10-18 6:49 UTC (permalink / raw)
To: ding
I've got several nnmaildir groups with many duplicate messages sharing the
same Message-ID. I know Gnus can act on duplicate messages it receives
according to nnmail-treat-duplicates, but how to deal with duplicate
messages already in a nnmaildir group ?
Ideally, I would like to mark all the duplicate messages in a group.
--
Julien Cubizolles
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: remove duplicates from a group
2023-10-18 6:49 remove duplicates from a group Julien Cubizolles
@ 2023-10-18 15:38 ` Eric Abrahamsen
2023-10-20 7:02 ` Julien Cubizolles
0 siblings, 1 reply; 4+ messages in thread
From: Eric Abrahamsen @ 2023-10-18 15:38 UTC (permalink / raw)
To: ding
Julien Cubizolles <j.cubizolles@free.fr> writes:
> I've got several nnmaildir groups with many duplicate messages sharing the
> same Message-ID. I know Gnus can act on duplicate messages it receives
> according to nnmail-treat-duplicates, but how to deal with duplicate
> messages already in a nnmaildir group ?
>
> Ideally, I would like to mark all the duplicate messages in a group.
No, there's nothing like that available right now. Probably we'd want it
to be a search function, rather than marking or limiting, since the
latter would require you to first open a summary buffer containing all
the articles in the group. Search would ensure that you're checking the
whole group for duplicates, and then maybe there could be a dedicated
marking function after that, for marking all but one of duplicate
messages.
But none of that exists right now!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: remove duplicates from a group
2023-10-18 15:38 ` Eric Abrahamsen
@ 2023-10-20 7:02 ` Julien Cubizolles
2023-10-20 14:57 ` Eric Abrahamsen
0 siblings, 1 reply; 4+ messages in thread
From: Julien Cubizolles @ 2023-10-20 7:02 UTC (permalink / raw)
To: ding
Eric Abrahamsen <eric@ericabrahamsen.net> writes:
> Julien Cubizolles <j.cubizolles@free.fr> writes:
>
>> I've got several nnmaildir groups with many duplicate messages sharing the
>> same Message-ID. I know Gnus can act on duplicate messages it receives
>> according to nnmail-treat-duplicates, but how to deal with duplicate
>> messages already in a nnmaildir group ?
>>
>> Ideally, I would like to mark all the duplicate messages in a group.
>
> No, there's nothing like that available right now. Probably we'd want it
> to be a search function, rather than marking or limiting, since the
> latter would require you to first open a summary buffer containing all
> the articles in the group. Search would ensure that you're checking the
> whole group for duplicates, and then maybe there could be a dedicated
> marking function after that, for marking all but one of duplicate
> messages.
>
> But none of that exists right now!
Thanks, now I can stop searching for this function and maybe start
coding…
--
Julien Cubizolles
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: remove duplicates from a group
2023-10-20 7:02 ` Julien Cubizolles
@ 2023-10-20 14:57 ` Eric Abrahamsen
0 siblings, 0 replies; 4+ messages in thread
From: Eric Abrahamsen @ 2023-10-20 14:57 UTC (permalink / raw)
To: ding
Julien Cubizolles <j.cubizolles@free.fr> writes:
> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>> Julien Cubizolles <j.cubizolles@free.fr> writes:
>>
>>> I've got several nnmaildir groups with many duplicate messages sharing the
>>> same Message-ID. I know Gnus can act on duplicate messages it receives
>>> according to nnmail-treat-duplicates, but how to deal with duplicate
>>> messages already in a nnmaildir group ?
>>>
>>> Ideally, I would like to mark all the duplicate messages in a group.
>>
>> No, there's nothing like that available right now. Probably we'd want it
>> to be a search function, rather than marking or limiting, since the
>> latter would require you to first open a summary buffer containing all
>> the articles in the group. Search would ensure that you're checking the
>> whole group for duplicates, and then maybe there could be a dedicated
>> marking function after that, for marking all but one of duplicate
>> messages.
>>
>> But none of that exists right now!
>
> Thanks, now I can stop searching for this function and maybe start
> coding…
It's probably easiest to start with the limiting function: once a
newsgroup is open you have access to `gnus-newsgroup-headers`, and it
should be fairly straightforward to sort them by message-id, then pick
out the article numbers of all consecutive duplicates, and pass that to
marking. Then you're halfway there!
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-10-20 14:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-18 6:49 remove duplicates from a group Julien Cubizolles
2023-10-18 15:38 ` Eric Abrahamsen
2023-10-20 7:02 ` Julien Cubizolles
2023-10-20 14:57 ` Eric Abrahamsen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).