🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.mush
Article #35

filtering out duplicate messages

#35
From: Joe Petolino
Date: Fri, 10 Apr 1992 22:18
17 lines
988 bytes
I want to filter out all of the duplicate messages from my mailbox.  That is,
if two or more messages have the same Message-Id, I want to delete all but
one of them.  How can I do this?

One approach might be to use the pipe command to send all of the mail text
to a unix script that searches for duplicates.  Is there a way for this script
to communicate the list of duplicates back to a mush pipeline?  E.g.,
something like this:

    pick * | pipe myfilter | delete

I couldn't find anything in the man pages about getting a message list
*out* of the pipe command.

Thanks.

-Joe
Technical Details
Message-ID: <kuc521INNquv@exodus.Eng.Sun.COM>
Path: arc1-ca.pugleaf.net!sparky!news.UU.NET!sun-barr!news2me.ebay.sun.com!exodus.Eng.Sun.COM!joe.Eng.Sun.COM!petolino

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!news.UU.NET!sun-barr!news2me.ebay.sun.com!exodus.Eng.Sun.COM!joe.Eng.Sun.COM!petolino
From: petolino@joe.Eng.Sun.COM (Joe Petolino)
Newsgroups: comp.mail.mush
Subject: filtering out duplicate messages
Message-ID: <kuc521INNquv@exodus.Eng.Sun.COM>
Date: 10 Apr 92 22:18:41 GMT
Organization: Sun Microsystems Inc., Mountain View, CA
Lines: 17
NNTP-Posting-Host: joe