LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Re: Procmail and notification

[ILUG] Re: Procmail and notification

Padraig Finnerty padraigf at compapp.dcu.ie
Fri Feb 4 15:23:22 GMT 2000


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





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell