On Wed, 10 Jul 1996, Eric D. Berg wrote:
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.
I inserted this recipe into my .procmailrc fil, but nothing happens.
FROM=`formail -rtzxTo:`
SUBJ=`formail -rtzxSubject:`
:0 c
| echo "You have new mail from $FROM about $SUBJ" &
I used mail lolson < file to test it, the mail got there, but th mssage
wasn't displayed.
Any ideas what is wrong?
Until NeXTime,
_ _ __ __
\_|_) _ o | | / () ,_ o |) /\_\/|\ , _ \\\' _///
| |/ | |/ >- / | | |/) | ||/ / \_/ \_/|/| \\\// _/ //
(\__/|_/|/|_/ \___/ |/|/| \/ \__/ |_/ \/ \_/ | |_/ \_-//'_/ //<'
|\ Computer Science Major(_at_)Jamestown College \/// <//'
________ |/_______ ____ ____ _ _________ __ / >> \\\'
/_ __/ / / / ____/ / __ \ / __ \ | / / ____/ | / / of /,)-^>> _/
/ / / /_/ / __/ / /_/ // /_/ / | / / __/ / |/ / The (/ \\ //
/ / / __ / /___ / __, // __ /| |/ / /___/ /| / Black //
/_/ /_/ /_/_____/ /_/ |_/_/ /_/ |___/_____/_/ |_/ Tower ((
THE RAVEN'S LOFT URL: http://acc.jc.edu/~lolson/ .signature V5.0