info-gnus-english
[Top][All Lists]
Advanced

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

Re: Play sound on new mail


From: Thierry Volpiatto
Subject: Re: Play sound on new mail
Date: Wed, 10 Feb 2010 19:19:07 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.92 (gnu/linux)

Richard Riley <rileyrgdev@gmail.com> writes:

> Joe Galaxy <see@my.sig.invalid> writes:
>
>> Hi all, there is possible to make gnus play a sound when new mail
>> arrives?
>
> That should be the job of something like gnubiff - you want an app which
> polls your mailbox and tells you there is mail pending collection.
>
> http://gnubiff.sourceforge.net/
>
> Since you probably manually tell gnus to fetch mail it doesnt seem
> appropriate that it beeps when it gets mail since you will see it anyway
> in the Group buffer.


You can also use a simple script you run all the x minutes in a crontab
that look at the mails incoming in your mail dir (source not the gnus
one).

Something checking the size of each mailbox and telling you if it is
empty or not work fine:

Example:

,----
| MB14="/you/incoming/help-gnu-emacs"
| CHECK14=$(du $MB14 | awk '{print $1}')
| if [[ $CHECK14 > 0 ]] ; then echo -n " You have New Mails " ; fi
`----

You can replace the echo by what you want, sound etc..
I use this echo message in my stumpwm mode-line (no crontab, the
mode-line timer).

-- 
Thierry Volpiatto





reply via email to

[Prev in Thread] Current Thread [Next in Thread]