From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/2959 Path: news.gmane.org!not-for-mail From: Hanak David Newsgroups: gmane.emacs.gnus.user Subject: Re: Duplicate messages Date: Tue, 02 Sep 2003 21:32:36 +0200 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138669212 17088 80.91.229.2 (31 Jan 2006 01:00:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 01:00:12 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:31:29 2006 Original-Path: quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: adsl244153.vnet.hu Original-X-Trace: quimby.gnus.org 1062531734 30293 62.77.244.153 (2 Sep 2003 19:42:14 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 2 Sep 2003 19:42:14 GMT Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAwBAMAAACRVSWoAAAAIVBMVEV9V0yxtLAfFxn5+/jP 09FMNjJnRj/s8ewwJSaWa18mHR/J1LfGAAACYklEQVR4nF3SMWvcMBQH8FfoqfV2Ji7XrJ6Kt+CA yVYTtaHbDZXxdXIGi8sYnGKyJQGXV00XuF7qrRgCQp+yf+nS0NbD+fzze3rvSaY8v8rDVS66cC/y nPK8x7+uOJxXOk5Az1iOUVsbZ4fTY2AX8GismXlKM3UeYw2PRffxB7NhM6VONad5SC8uWwQ6M2Vp 6oaD/ZrFG2br3DuejEuzF13A45qNNSnCLNYdDgKeGJ6cneyUWb5L7Wdgl39FoDMZUtngdpsXwLeo m8E9Ouduu4L6/DW7NLWOTepc5tz33qevjbETW4SmWWrNL2Df1QZZ6AnNg3lYoHrPfAdJfSTacuzx 2GNmPGHOzD2eBUR7mS/DPNSGH/s9GubaZFy3SgG7fTpz1aphULpViD4FFtg1tdRKaS1Ey+7GY167 oa20WhKRaA0m8vjTfhO6IRqh2rjzgB/YB0XjGG1If3Fbj/0JEOQvoWu79S3112optNedqqr18NLv Z3+9bhryShqVeOt3vrieNRuhadyItRbtzatwHEeziGgpok002zVi9bDHHZ5XY7RDIaILj7K/RA0k 4824QW8PaEnG8b4dj17x8VHyB8eAYvwPm/AiAZZlfBiMAtJ9jJ2X0Pl+TfLpcbzoKJFxOd+P/oRx R6VMpC8xRhgVHQEXVCZAxIiKlEbvwJgkEBssWoUTqeg8CRhLRJJqK2pxSk9YBtQYW+A3/hsbzI5X F6Usn3BO7ZJweLp6iSfp8Uy+H2dYkSt1k8hn/DSKQala1at/cFwzlO+BpUe5kCUGqpXilfSRZQlM rqSfvFXV1jeN0N9h90AtS30f5wAAAABJRU5ErkJggg== User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:yV/0OGImLvJd3ApkzQiWQYb0l0w= Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:3100 Original-Lines: 23 X-Gnus-Article-Number: 3100 Tue Jan 17 17:31:29 2006 Xref: news.gmane.org gmane.emacs.gnus.user:2959 Archived-At: On Tue, 02 Sep 2003, Philip Clark wrote: > This only seems to work for incoming email ie. it saves the headers in > .nnmail-cache to do it. I need to do it for exist mail folders. Any ideas? Right. That's a tough one. I can't think of any direct methods, but I have two workarounds in mind. 1. You could write a summary sort function that orders articles by their Message-IDs. Then you could detect duplicates by skimming the summary list looking for equally long articles one after another, checking matches more carefully. Still a lot of work if you have many articles. 2. Remove the .nnmail-cache file, then respool all mails (at least those where the duplicates appear), then filter the newly created .nnmail-cache with sort | uniq -d. The ones listed will be hopefully duplicates. Finally you can match the duplicate Message-IDs to article numbers, and voila. Now that I think of it, it is quite complicated this way, too. I hope that helped. David