🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.mh
Article #1869

Re: Showing the first message in a sequence

#1869
From: Jerry Peek
Date: Tue, 09 May 1989 16:40
20 lines
1213 bytes
In article <306@odi.UUCP> (Benson Margulies) writes:
>I wanted a way to show the first unseen message in a folder.

You can do it with the shell.  Here's a simple little Bourne-shell script
(call it "fu") that shows the first unseen message.
You could make it into a c-shell alias, if you want:


#! /bin/sh
# Use show(1) on first message in "unseen" sequence.  This is an ugly hack.
# Runs mhpath(1) to get full pathnames of all unseen messages; strips off
# everything except the message number from the first pathname.
show `mhpath unseen | sed -n '1s@.*/@@p'`


You could be more elegant.  And there's gotta be a better way.  Ideas, anybody?

--Jerry Peek; Syracuse University Academic Computing Services; Syracuse, NY
  jdpeek@rodan.acs.syr.edu, SUNRIS::JDPEEK, jdpeek@suvm.bitnet
  +1 315 443-3995
Technical Details
Message-ID: <8905091540.AA17872@rodan.acs.syr.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!RODAN.ACS.SYR.EDU!jdpeek

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!RODAN.ACS.SYR.EDU!jdpeek
From: jdpeek@RODAN.ACS.SYR.EDU (Jerry Peek)
Newsgroups: comp.mail.mh
Subject: Re: Showing the first message in a sequence
Message-ID: <8905091540.AA17872@rodan.acs.syr.edu>
Date: 9 May 89 16:40:44 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Organization: The Internet
Lines: 20