From: Padraig Finnerty (padraigf at domain compapp.dcu.ie)
Date: Fri 04 Feb 2000 - 15:23:22 GMT
On Fri, Feb 04, 2000 at 11:39:22AM -0000 Jeremy Smyth wrote:
> Is there any way I can get asmail to notify me when I get new mail into one
> of my OTHER folders?
>
I have a script which sends the Subject and From fields from every
mail to /dev/console, it's run for every mail I receive. You can
usually tell what list it's from, as ILUG mails have an [ILUG] in the
subject line etc.
I call the script from the .forward file, my .forward looks like this:
% cat ~/.forward
"|IFS=' '&&exec /usr/bin/procmail -f-||exit 75 #padraig"
"|/home/padraig/bin/vbiff"
%
The first line is a call to procmail, the second sends the e-mail through
my vbiff script, which basically greps out the From and Subject fields and
sends them to /dev/console. It looks like this:
% cat ~/bin/vbiff
#! /bin/sh
echo new mail received at `date` > /dev/console
formail -z -XFrom: -XSubject: > /dev/console
%
Then you can see it by running an xconsole, which looks like this:
http://www.csn.ul.ie/~padraig/vbiff.png
Padraig
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:05:21 GMT