Gnus development mailing list
 help / color / mirror / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: ding@gnus.org
Subject: Re: function to mark duplicate messages
Date: Sat, 17 Nov 2012 12:13:46 +0800	[thread overview]
Message-ID: <87fw48x3wl.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <87mwyg3nb6.fsf@ericabrahamsen.net>

Eric Abrahamsen <eric@ericabrahamsen.net> writes:


[...]

> 1. Turn off threading temporarily
> 2. Sort by message ID with a predicate that uses `string<', and
>    furthermore sort messages with Gnus-Warning headers to come after
>    those without.
> 3. Loop through messages and add a mark to any message whose message ID
>    is string= to the ID before it
> 4. Leave it at that -- the user can delete or otherwise process.

Actually, on second thought, it would fit better with existing gnus
functions to simply sort on message ID, then loop through the messages
and add Gnus-Warning headers to all those that seem to be duplicates.
Separate functions could then act on messages with those headers.

E




      reply	other threads:[~2012-11-17  4:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-17  3:45 Eric Abrahamsen
2012-11-17  4:13 ` Eric Abrahamsen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fw48x3wl.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).