Subject: New messages in folders?

From: Blaine Cook <[email-masked]>
Date: Tue, 21 Mar 2000 15:57:16 -0800 (PST)

Hi, I was wondering if there is a way to have pine highlight folders in which
there are new messages. I have a fairly extensive heirarchy of folders,
managed by procmail, and although it has allowed me to keep on top of email,
and avoid reading messages I don't care about, it takes far too much time to
constantly be checking if there are new messages in any of the folders, and I
don't want to turn it into a flat-heirarchy by placing all the folders in the
Incoming-Folders collection.

Any solutions?

thanks,

blaine
--   _                                  .
    ( o> - INDEED.                     .o.  
    ///\                                 \/ 
_._`\V_/_ http://www.yellow5.com/pokey/ _/_____

-- 
-----------------------------------------------------------------
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/pine/pine-info/
-----------------------------------------------------------------

---

From: "Eduardo Chappa L." <[email-masked]>
Date: Tue, 21 Mar 2000 16:50:15 -0800 (PST)

*** Blaine Cook wrote in the pine-info list today:

:) Hi, I was wondering if there is a way to have pine highlight folders in which
:) there are new messages. I have a fairly extensive heirarchy of folders,
:) managed by procmail, and although it has allowed me to keep on top of email,
:) and avoid reading messages I don't care about, it takes far too much time to
:) constantly be checking if there are new messages in any of the folders, and I
:) don't want to turn it into a flat-heirarchy by placing all the folders in the
:) Incoming-Folders collection.
:) 
Since you are not  using your incoming-folder-collections (I disagree with
you on that, but the following advice will work only because you are not
using incoming-folders-collection).

  Put your cursor on any of the folders that are in the same collection
list that are the folders where you want to check your new mail. Press ";"
to select and take a look at the menu in the bottom, there should be a
"Properties" options, press the letter P. A new menu should appears. Press
N for selecting the folders with new messages. This will select in bold
the folders containing new messages. The disadvantage of this is that it
will probably select a folder like "sent-mail", which has new mail, but
not new incoming mail.

  Somehow this does not work in the incoming folders collection, for
unknown reasons to me. Maybe someone more knowledgeable has an explanation
why.

-- 
Eduardo
http://www.math.washington.edu/~chappa/pine/

---

From: Blaine Cook <[email-masked]>
Date: Tue, 21 Mar 2000 17:12:22 -0800 (PST)

>using incoming-folders-collection).

Is it possible to create a heirarchy within the incoming-folders collection,
that can be <tab>'d through to see new messages? If so, this would be the
ideal way to deal with messages, but I seem to recall not being able to do
this..?

>will probably select a folder like "sent-mail", which has new mail, but

Thanks, this works well -- is there any way to have pine do this
automatically, and perhaps rather than selecting folders, mark them as bold?
Also, recursion would be nice.. ;-)

blaine
--   _                                  .
    ( o> - INDEED.                     .o.  
    ///\                                 \/

---

From: Scott Leibrand <[email-masked]>
Date: Tue, 21 Mar 2000 23:03:49 -0800 (PST)

> ideal way to deal with messages, but I seem to recall not being able to do

It's not currently possible to do folder heirarchies within
incoming-folders, but you can still preserve your heirarchical structure
in your folder collections while creating shortcuts to the folders in
incoming-folders.  Perhaps that would be the best (though not ideal)
solution in your case.

> Also, recursion would be nice.. ;-)

It's not currently possible (AFAIK), and I don't know if it's very high on
the Pine Team's priority list...  (Think patch.)

-- 
Scott Leibrand
[email-masked]
http://students.washington.edu/leibrand
* RCW 19.190 notice: This email address is located in Washington State. *
* Unsolicited commercial email may be billed $500 per message.          *

---

From: Steven Whatley <[email-masked]>
Date: Thu, 23 Mar 2000 08:29:45 -0600 (CST)

On Tue, 21 Mar 2000, Blaine Cook wrote:
> there are new messages. 

I have a script that I use to look through my IN.* mailboxes.  It gets
called when I log in. I include it below: 

--------- newmail.sh ---------------------------------------------------
#!/bin/ksh
# 
# Date: Fri, 3 Dec 1999 12:11:38 -0600 (CST)
# From: Mike Miller <[email-masked]>
# To: Pine Discussion Forum <[email-masked]>
# Subject: incoming folders (was Re: Ok, here I go again!)
# 

if [ `wc /var/mail/swhatley | awk '{print $1}'` == 0 ]; then
    echo ""
    echo "No mail in Inbox"
else
    echo ""
    egrep '^From ' /usr/mail/swhatley | wc | awk '{print "Listing of "$1" messages in your inbox:"}'
    echo ""
    for item in `egrep -n '^From ' /usr/mail/swhatley | awk -F: '{print $1}'`; do
        tail +$item /var/mail/swhatley | egrep '^From: ' | head -1
	tail +$item /var/mail/swhatley | egrep '^From: |^Subject: ' | tail +2 | head -1 | egrep -v '^From: '
        echo ""
    done
fi
echo ""
echo "Messages in other inboxes:"
echo ""
for file in `ls -1 ~/Mail/.Incoming/IN.* | grep -v lock | awk -F. '{print $NF}'`; do
    echo "IN.$file `egrep '^From ' ~/Mail/.Incoming/IN.$file | wc`" | awk '{print $2"\t"$1}' | grep -v ^0\	
done
echo ""
-----------------------------------------------------------------

I hope this helps.

Later,
Steven