Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Re: Duplicate messages
       [not found]   ` <x34vfsbaz4a.fsf@bbrcu1.slac.stanford.edu>
@ 2003-09-02 19:32     ` Hanak David
  0 siblings, 0 replies; only message in thread
From: Hanak David @ 2003-09-02 19:32 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-09-02 19:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <x348yp8i451.fsf@bbrcu5.slac.stanford.edu>
     [not found] ` <m27k4rfvg9.fsf@maui.hanak.hu>
     [not found]   ` <x34vfsbaz4a.fsf@bbrcu1.slac.stanford.edu>
2003-09-02 19:32     ` Duplicate messages Hanak David

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).