Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: info-gnus-english@gnu.org
Subject: Re: Play sound on new mail
Date: Wed, 10 Feb 2010 19:19:07 +0100	[thread overview]
Message-ID: <87hbpposx0.fsf@tux.homenetwork> (raw)
In-Reply-To: <br6b47-fuk.ln1@news.eternal-september.org>

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	other threads:[~2010-02-10 18:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-10 11:16 Joe Galaxy
2010-02-10 17:26 ` Richard Riley
2010-02-10 18:19   ` Thierry Volpiatto [this message]
     [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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87hbpposx0.fsf@tux.homenetwork \
    --to=thierry.volpiatto@gmail.com \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).