procmail
[Top] [All Lists]

Re: New mail with procmail

1997-10-18 03:02:07
On Sat, 18 Oct 1997 11:27:12 +0200 (SAST), Malcolm Florence
<malcolm(_at_)pnp(_dot_)co(_dot_)za> wrote:
Is there anyway that procmail can alert me when new mail arrives ... for
example : is there anyway that I can open another screen using xdialog
with a message "New Mail" whenever I get any new mail.  At the moment, I

This is not properly the job of Procmail, but you could certainly do
something like this near the start of your .procmailrc:

    :0ci
    | xdialog 'Moo!'

(I'm unfamiliar with the xdialog program but I'd imagine you might
want something more or less like xmotd that you'd have to click to get
rid of [urgh]). 

Here's what I do when I'm at an X terminal:

    xterm -name 'Procmail Log' -e tail -0f $HOME/Mail/procmail.log &

You should also look at different X biff(1) programs such as xbuffy.
(Look at the documentation for comsat(8) and Procmai's COMSAT
variable.) 

start any programs upon mail arrival (e.g. to generate different chimes on
your workstation for different types of mail) or selectively forward

Nauseating idea. But doable. 

    :0ci
    | raplayer $HOME/moo.ra

Hope this helps,

/* era */

-- 
 Paparazzi of the Net: No matter what you do to protect your privacy,
  they'll hunt you down and spam you. <http://www.iki.fi/~era/spam/>

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