[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mail notification



>>>>> "Cheryl" == Cheryl Homiak <chomiak@chartermi.net> writes:

    Cheryl> Hi all!  I am using woody; have exim and fetchmail and
    Cheryl> Pine for mail, though considering a change to mutt. Can't
    Cheryl> use Xwindows or graphical systems because I am blind.  I
    Cheryl> want to know whether there is a way I can set up my
    Cheryl> machine so that it will beep when I get new mail into
    Cheryl> /var/mail, but without displaying the actual mail messages
    Cheryl> at the time. 

If you want to use your shell, that's quiet easy.

In bash and (in zsh it should work similarly) you may append (with a
question mark) the mail notification message to the $MAILPATH
setting. But this message could be perfectly a sound playing command
or a text reading one.
If festival is on your system you could put the following in ~./bash_profile


export MAILPATH='~/var/spool/mail/YOU?`festival --tts ~/festmail.txt`'


So festival will read the text of ~/festmail.txt to you instead of
displaying "You have new mail".

HTH,

MH

-- 
(Dr.) Michael Hummel
mailto: mh@seitung.net || molino@gmx.net
--
fprint = F24D EAC6 E3D7 372C 9122 D510 EB24 01CA 0B56 B518
id: 1024D/0B56B518 key: http://www.seitung.net/key

Attachment: pgp_xA2pwArGF.pgp
Description: PGP signature


Reply to: