🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.mush
Article #1026

Cutting remarks (pasting, too)

#1026
From: Barton E. Schaefer
Date: Tue, 06 Feb 1990 03:36
27 lines
1991 bytes
In article <131272@sun.Eng.Sun.COM> argv@sun.UUCP (Dan Heller) writes:
} A small modification to bart's message -- he has:
} >     cmd cut 'save -f \!* /tmp/cut$$ | d'
} >     cmd paste 'save \!* -$ {`:d`} /tmp/cut$$ | d; Paste'
} >     cmd Paste 'merge -N /tmp/cut$$'
} But this doesn't take into account the fact that you may already have
} deleted messages.  Instead, I recommend:
} 
}     cmd cut 'save -f \!* /tmp/cut$$ | d | set cut_msgs'
}     cmd paste 'save \!* -$ { $cut_msgs } /tmp/cut$$ | d; Paste'

I hate to third-guess Dan's second-guess, but he's wrong -- my original
suggestion specifically DOES take into account the fact that you may
already have deleted messages, by omitting ALL deleted messages from
the extra stuff that gets written to the temp file.  (Why save the
messages and merge them back in if they've been deleted already?  All
that does is effectively undelete them again!)

Neither Dan's method nor mine will actually assign a specified number
to the messages -- they just make sure the messages are in the order
that you wanted *after* you update, and when you display headers in
the "normal" way (i.e. without $show_deleted).
-- 
Bart Schaefer           "And here is the result of the Epilogue:  God exists,
                         by two falls to a submission.  Next week, Larry Wall
                         debates Randal Schwartz on use of the `grep' operator
schaefer@cse.ogi.edu     in Perl, three rounds, Marcus of Queensbury Rules."
Technical Details
Message-ID: <7140@ogicse.ogc.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!yale!mintaka!ogicse!schaefer
References: <3257@taux01.UUCP> <7129@ogicse.ogc.edu> <131272@sun.Eng.Sun.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!yale!mintaka!ogicse!schaefer
From: schaefer@ogicse.ogc.edu (Barton E. Schaefer)
Newsgroups: comp.mail.mush
Subject: Cutting remarks (pasting, too)
Message-ID: <7140@ogicse.ogc.edu>
Date: 6 Feb 90 03:36:17 GMT
References: <3257@taux01.UUCP> <7129@ogicse.ogc.edu> <131272@sun.Eng.Sun.COM>
Reply-To: schaefer@ogicse.UUCP (Barton E. Schaefer)
Organization: Oregon Graduate Institute (formerly OGC), Beaverton, OR
Lines: 27