From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/14400 Path: news.gmane.org!not-for-mail From: Yuri D'Elia Newsgroups: gmane.emacs.gnus.user Subject: Gnus and new mail notification Date: Sat, 25 Dec 2010 00:33:12 +0100 Message-ID: <87y67evj9j.fsf@savara.sat.thregr.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1293233615 19905 80.91.229.12 (24 Dec 2010 23:33:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 24 Dec 2010 23:33:35 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Sat Dec 25 00:33:31 2010 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PWH8c-0004Vj-MF for gegu-info-gnus-english@m.gmane.org; Sat, 25 Dec 2010 00:33:30 +0100 Original-Received: from localhost ([127.0.0.1]:60066 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PWH8c-00084S-8I for gegu-info-gnus-english@m.gmane.org; Fri, 24 Dec 2010 18:33:30 -0500 Original-Received: from [140.186.70.92] (port=48363 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PWH8Z-00084D-LN for info-gnus-english@gnu.org; Fri, 24 Dec 2010 18:33:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PWH8X-00044R-Vj for info-gnus-english@gnu.org; Fri, 24 Dec 2010 18:33:27 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:60766) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PWH8X-00044H-MP for info-gnus-english@gnu.org; Fri, 24 Dec 2010 18:33:25 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PWH8W-0004Td-Fe for info-gnus-english@gnu.org; Sat, 25 Dec 2010 00:33:24 +0100 Original-Received: from 88-149-141-240.dynamic.ngi.it ([88.149.141.240]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 25 Dec 2010 00:33:24 +0100 Original-Received: from wavexx by 88-149-141-240.dynamic.ngi.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 25 Dec 2010 00:33:24 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 88-149-141-240.dynamic.ngi.it User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:JU/Ib8MMtZ2jisMsx08LAZAnKpQ= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:14400 Archived-At: I wasn't happy with the existing new mail notification scripts that I've found on emacswiki. I've put together a new script, called "gnus-notify"[1], that can call any arbitrary program when new messages are received. The default uses the 'notify-send' program (part of libnotify's library) which creates little popup messages. This is especially useful if you have virtual desktops and leave Gnus running with gnus-demon. The result (showing Gnus + awesomewm + libnotify-bin on Debian) is shown here: http://www.thregr.org/~wavexx/hacks/gnus-notify.png You can also do arbitrary stuff by either setting a different executable, or supplying an entirely new notification function. Simply read the commentary in the source. gnus-notify.el is available at: http://www.thregr.org/~wavexx/hacks/gnus-notify.el Merry christmas :) [1] I know there's already a gnus-notify.el script, but I wasn't able to come up with a better name.