procmail
[Top] [All Lists]

Re: New Mail

1996-07-11 09:25:23
Sorry for not being clear about the echo part of this!  

-Eric.

Eric D. Berg writes:
The Raven writes:
 > I often leave myself logged in at my shell prompt.
 > 
 > How can I have procmail pop up a little message like:
 > 
 > You have new mail from lolson(_at_)acc(_dot_)jc(_dot_)edu about New Mail.
 > 

I use this to inform me of mail from my wife.  xmessage pops up a window on
your xdisplay, but you can easily just change this to `echo`.


FROM=`formail -rtzxTo:`
DISPLAY="bluedog:0.0"
SUBJ=`formail -rtzxSubject:`
:0 c
* FROM ?? mywife(_at_)herjob(_dot_)com
|  xmessage  "$FROM: $SUBJ"  &


-----------------------------
Eric Berg, <eberg(_at_)sybase(_dot_)com>
Web Developer, Sybase, Inc. 
http://www-es1.sybase.com

<Prev in Thread] Current Thread [Next in Thread>