* Play sound on new mail
@ 2010-02-10 11:16 Joe Galaxy
2010-02-10 17:26 ` Richard Riley
[not found] ` <mailman.1016.1265823046.14305.info-gnus-english@gnu.org>
0 siblings, 2 replies; 6+ messages in thread
From: Joe Galaxy @ 2010-02-10 11:16 UTC (permalink / raw)
To: info-gnus-english
Hi all, there is possible to make gnus play a sound when new mail
arrives?
--
☿ ↫ ⚗ ↬ ☉
$(echo 502625742692402704447754P|dc)@gmail.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Play sound on new mail
2010-02-10 11:16 Play sound on new mail Joe Galaxy
@ 2010-02-10 17:26 ` Richard Riley
2010-02-10 18:19 ` Thierry Volpiatto
[not found] ` <mailman.1016.1265823046.14305.info-gnus-english@gnu.org>
1 sibling, 1 reply; 6+ messages in thread
From: Richard Riley @ 2010-02-10 17:26 UTC (permalink / raw)
To: info-gnus-english
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Play sound on new mail
[not found] ` <mailman.1016.1265823046.14305.info-gnus-english@gnu.org>
@ 2010-02-10 17:49 ` Joe Galaxy
2010-02-10 20:01 ` John Sullivan
[not found] ` <mailman.1020.1265832549.14305.info-gnus-english@gnu.org>
0 siblings, 2 replies; 6+ messages in thread
From: Joe Galaxy @ 2010-02-10 17:49 UTC (permalink / raw)
To: info-gnus-english
On mer 10 feb 2010 18:26, Richard Riley <rileyrgdev@gmail.com> wrote:
> http://gnubiff.sourceforge.net/
I'll give a try.
> 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.
I've a daemon:
(gnus-demon-add-handler 'gnus-group-get-new-news 5 nil)
--
☿ ⚗ ☉
$(echo 502625742692402704447754P|dc)@gmail.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Play sound on new mail
2010-02-10 17:26 ` Richard Riley
@ 2010-02-10 18:19 ` Thierry Volpiatto
0 siblings, 0 replies; 6+ messages in thread
From: Thierry Volpiatto @ 2010-02-10 18:19 UTC (permalink / raw)
To: info-gnus-english
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Play sound on new mail
2010-02-10 17:49 ` Joe Galaxy
@ 2010-02-10 20:01 ` John Sullivan
[not found] ` <mailman.1020.1265832549.14305.info-gnus-english@gnu.org>
1 sibling, 0 replies; 6+ messages in thread
From: John Sullivan @ 2010-02-10 20:01 UTC (permalink / raw)
To: info-gnus-english
Joe Galaxy <see@my.sig.invalid> writes:
> On mer 10 feb 2010 18:26, Richard Riley <rileyrgdev@gmail.com> wrote:
>
>> http://gnubiff.sourceforge.net/
> I'll give a try.
>
>> 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.
> I've a daemon:
> (gnus-demon-add-handler 'gnus-group-get-new-news 5 nil)
It looks like that runs gnus-after-getting-new-news-hook, so you could
do something with that. I didn't see (looking only quickly) whether
there is a value passed to it based on new news or not though.
Also remember that Emacs has its own "biff" functionality with
display-time-mode, so you might be able to hook into that.
--
John Sullivan
Emacs Planner Maintainer
http://wjsullivan.net/PlannerMode.html
GPG Key: AE8600B6
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Play sound on new mail
[not found] ` <mailman.1020.1265832549.14305.info-gnus-english@gnu.org>
@ 2010-02-11 16:15 ` Joe Galaxy
0 siblings, 0 replies; 6+ messages in thread
From: Joe Galaxy @ 2010-02-11 16:15 UTC (permalink / raw)
To: info-gnus-english
On mer 10 feb 2010 21:01, John Sullivan <john@wjsullivan.net> wrote:
> It looks like that runs gnus-after-getting-new-news-hook, so you could
> do something with that. I didn't see (looking only quickly) whether
> there is a value passed to it based on new news or not though.
Done adding
(shell-command "play -q /path/to/sound.wav")
to gnus-notify+.el
;^)
--
☿ ⚗ ☉
$(echo 502625742692402704447754P|dc)@gmail.com
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-02-11 16:15 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-10 11:16 Play sound on new mail Joe Galaxy
2010-02-10 17:26 ` Richard Riley
2010-02-10 18:19 ` Thierry Volpiatto
[not found] ` <mailman.1016.1265823046.14305.info-gnus-english@gnu.org>
2010-02-10 17:49 ` Joe Galaxy
2010-02-10 20:01 ` John Sullivan
[not found] ` <mailman.1020.1265832549.14305.info-gnus-english@gnu.org>
2010-02-11 16:15 ` Joe Galaxy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).