Re: Mailbox check utility

Charlie Schluting <[email protected]>
Newsgroups gmane.org.user-groups.linux.pdxlug
Message-ID <[email protected]>
Paul Lankow wrote:
> I wasn't very clear. Pine works great with IMAP and I can see all my 
> mailboxes. Procmail sends email to different mailboxes but Pine only 
> informs me about new mail in the INBOX, not the others. I am looking 
> for a command-line solution to polling all my mailboxes.
> 
> Thanks!
> Paul

Two solutions:

1) Turn on comsat notifications: 'biff y'
and in your .procmailrc, make the filtered email sound a comsat alarm. Here's an 
example of how I do it:

:0:
* (^TO_.*)linux-kernel.*kernel.org
{
     COMSAT=no
     :0
     LKML
}

If you *want* notifications, just say COMSAT=yes. The LKML is way too verbose 
for that :)

2) Sometimes I run a script that checks all mbox files in ~/mail/ for new 
messages, the prints a color coded output of each folder. Looks like this (but 
in color):
   INBOX           2     unchanged since: Jun  9 16:52  |
   support         2     unchanged since: Jun  9 16:42  |
   linuxteam       294   unchanged since: Jun  9 15:32  |

The numbers are the amount of unread messages. You can grab the script, and 
modify to taste from here:
http://schluting.com/count
Might want this too (wget, don't copy & paste):
http://schluting.com/ansiColors

Some people like the script, some don't. Neither are really ideal solutions 
..but work well enough. I rarely use pine/mh/mutt anymore since I discovered how 
nice thunderbird is.

-Charlie
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.