Subject: Re: Folders with unanswered messages - which ones?

From: Paul O Bartlett <[email-masked]>
Date: Fri, 3 Jan 1997 19:09:10 -0500

On Fri, 3 Jan 1997, Marco De la Cruz wrote:

> Is there any way to make Pine automatically
> highlight (or somehow mark) folders with
> unanswered messages inside? In this way
> I could tell at a glance (from the folder
> list) where are the messages I have not
> yet answered, instead of having to read
> the contents of each folder...

    If you are using the default (or not too heavily modified) format
for the index listing, then Pine will show you which messages are
_answered_.  Obviously, unanswered messages are those which have not
been answered. :-)  The format of the index listing (in later versions
of Pine) is controlled by the index-format field toward the bottom of
the configuration screens.  There is a good bit of online help.  If you
take the default or specify STATUS or FULLSTATUS, then an answered
message will have an 'A' in the status field.  Just look for any
message *without* an 'A'.

Paul                             <[email-masked]>
----------------------------------------------------------
Paul O. Bartlett, P.O. Box 857, Vienna, VA 22183-0857, USA
Finger, keyserver, or WWW for PGP 2.6.2 public key 
Home Page:  http://www.access.digex.net/~pobart

---

From: Marco De la Cruz <[email-masked]>
Date: Sat, 4 Jan 1997 22:31:16 GMT

> > unanswered messages inside? In this way
[snip!]
> of Pine) is controlled by the index-format field toward the bottom of
[snip!]

Thanks! However, it's not the status of messages in the
folder index which I was asking about, but of the _folders_
themselves. That is, is there any way to tell Pine to show
me whether there are unanswered messages inside a given
folder without actually listing its contents?

Again, any help is thoroughly appreciated!

_________________________________
[email-masked]
Gunnm: Broken Angel
http://128.100.80.13/marco/alita.html

---

From: Nancy McGough <[email-masked]>
Date: 5 Jan 1997 10:20:24 -0500

Marco De la Cruz <[email-masked]> writes:
>That is, is there any way to tell Pine to show

If you're on a system that has egrep, you can do this:

 egrep "^X-Status: [^A]" foldername

If anything shows up, you have unanswered messages.  You could
do the following to find out how many unanswered messages:

 egrep "^X-Status: [^A]" foldername | wc -l

What this does is look through the folder for every line that 
starts with `X-Status: ' followed by anything other than `A' (which
means answered.

Good luck,
Nancy

-- 
<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<
            @..@            Nancy McGough           /\_/\
           (----)           Infinite Ink           ( o.o )
          ( >__< )    http://www.jazzie.com/ii/     > ~ <

---

From: Marco De la Cruz <[email-masked]>
Date: Fri, 3 Jan 1997 06:56:34 GMT

Hi,

I'm using v. 3.95.

Thanks for any help!