Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!mcnc!duke!khera From: khera@cs.duke.edu (Vivek Khera) Newsgroups: comp.mail.mh Subject: Re: show -annotate (?) Message-ID: Date: 15 Apr 91 14:04:31 GMT References: <1991Apr13.000254.18825@agate.berkeley.edu> Sender: news@duke.cs.duke.edu Organization: Duke University CS Dept., Durham, NC Lines: 43 Nntp-Posting-Host: thneed.cs.duke.edu In-reply-to: smoot@roger-rabbit.Berkeley.EDU's message of 13 Apr 91 00:02:54 GMT In article <1991Apr13.000254.18825@agate.berkeley.edu> smoot@roger-rabbit.Berkeley.EDU (Stephen [Steve] R. Smoot) writes: I just discovered repl -annotate to mark messages as replied to. Is there a particular reason for no show -annotate to make them as having been read? I guess the obvious reason is to make show more efficient. Is there actually a better one (like a philosophical justification)? And yes I know, I could write my own showproc which does it. I just don't want to. -s here's how i know when i have or have not read a message. in my .mh_profile, i add the line Unseen-Sequence: unseen which puts new messages in the sequence unseen in each folder (as put there by inc or rcvstore). then a 'scan unseen' will list out the unseen messages in the current folder. as a convenience feature, i wrote the following script which i call usmail: #!/bin/csh -f # V. Khera # print out listing of unseen mail in mh folder +inbox # $Id: usmail.csh,v 1.1 90/11/15 17:36:24 khera Exp $ set foo = `mark +inbox -list -sequence unseen` if ("$foo[2]" != "(null)") then echo "Unseen mail (inbox):" scan unseen else echo "No unseen mail in inbox." endif when i do a show on the message, it automagically gets removed from the unseen sequence. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Vick Khera, Gradual Student/Systems Guy Department of Computer Science ARPA: khera@cs.duke.edu Duke University UUCP: ...!mcnc!duke!khera Durham, NC 27706 (919) 660-6528