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"
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
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:
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!