First, thanks to everyone who came in on this with suggestions.
What I was attempting to do was match emails that have the same subject
line. In each case the message-id would be different so I couldn't use
that.
After playing around with each suggestion I managed to edit the msgdups
script that
I wonder if these old [n]mh FAQ things would help? I remember using
mhfinddup a LONG time ago.
https://www.mhonarc.org/archive/html/nmh-workers/2008-09/msg4.html
https://lists.gnu.org/archive/html/nmh-workers/2008-09/msg1.html
https://github.com/dscho/nmh/blob/master/docs/FAQ
On Mon,
> I know that 'sortm -textfield Subject' will sort messages accoring to
> the subject field. Having run that command, is there a way to then
> delete the first duplicate of each message in the list such that if 1
> and 2 are duplicates and 6 and 7 are duplicates you would delete messages
> 2 and 7
Hi,
Ken wrote:
> > I know that 'sortm -textfield Subject' will sort messages accoring
> > to the subject field. Having run that command, is there a way to
> > then delete the first duplicate of each message in the list such
> > that if 1 and 2 are duplicates and 6 and 7 are duplicates you would
>
Is the goal to delete messages with the same subject line (but which may
have different bodies), or messages that are fully duplicates (so same
body, subject line, and most other headers)? "Duplicate" in the second case
is a lot harder as you could have messages that the received headers are
>I know that 'sortm -textfield Subject' will sort messages accoring to
>the subject field. Having run that command, is there a way to then
>delete the first duplicate of each message in the list such that if 1
>and 2 are duplicates and 6 and 7 are duplicates you would delete messages
>2 and 7