From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/82521 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: function to mark duplicate messages Date: Sat, 17 Nov 2012 12:13:46 +0800 Message-ID: <87fw48x3wl.fsf@ericabrahamsen.net> References: <87mwyg3nb6.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1353125415 27148 80.91.229.3 (17 Nov 2012 04:10:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 17 Nov 2012 04:10:15 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M30787@lists.math.uh.edu Sat Nov 17 05:10:26 2012 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TZZjb-0005fo-Nn for ding-account@gmane.org; Sat, 17 Nov 2012 05:10:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1TZZjI-00072m-Qy; Fri, 16 Nov 2012 22:10:04 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1TZZjH-00072W-4r for ding@lists.math.uh.edu; Fri, 16 Nov 2012 22:10:03 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1TZZjG-00036w-26 for ding@lists.math.uh.edu; Fri, 16 Nov 2012 22:10:02 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1TZZjE-0007gv-Ly for ding@gnus.org; Sat, 17 Nov 2012 05:10:00 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TZZjM-0005UF-3A for ding@gnus.org; Sat, 17 Nov 2012 05:10:08 +0100 Original-Received: from 114.250.131.150 ([114.250.131.150]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 17 Nov 2012 05:10:08 +0100 Original-Received: from eric by 114.250.131.150 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 17 Nov 2012 05:10:08 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 19 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 114.250.131.150 User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:QRbqDYdWp9TCXeUU5/GBaBkSJgo= X-Spam-Score: -0.8 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:82521 Archived-At: Eric Abrahamsen 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