From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/2680 Path: news.gmane.org!not-for-mail From: calmar Newsgroups: gmane.emacs.gnus.user Subject: notify after automatic mail recieving Date: Wed, 25 Jun 2003 10:47:41 +0200 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138669021 15968 80.91.229.2 (31 Jan 2006 00:57:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:57:01 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:31:03 2006 Original-Newsgroups: gnu.emacs.gnus X-MyHomePage: http://www.calmar.ws User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Rational FORTRAN, windows-nt) Hamster/1.3.23.4 windows-nt) Cancel-Lock: sha1:uUm2VQHUYl5mRTmcIJ/nPJkdRD0= Original-NNTP-Posting-Host: 80.218.222.4 Original-X-Trace: news.swissonline.ch 1056530717 80.218.222.4 (25 Jun 2003 10:45:17 +0200) Original-X-Complaints-To: abuse@swissonline.ch Original-Path: quimby.gnus.org!newsfeed1.e.nsc.no!nsc.no!nextra.com!uninett.no!news.algonet.se!algonet!news.tele.dk!news.tele.dk!small.news.tele.dk!peer1.news.newnet.co.uk!peer1.news.newnet.co.uk!feeder2.news.jippii.net!newsfeed3.funet.fi!newsfeeds.funet.fi!irazu.switch.ch!news-zh.switch.ch!switch.ch!news.swissonline.ch!not-for-mail Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:2820 Original-Lines: 48 X-Gnus-Article-Number: 2820 Tue Jan 17 17:31:03 2006 Xref: news.gmane.org gmane.emacs.gnus.user:2680 Archived-At: Hi, based on a previous threat I stole this function: ,---- | (defun my-gnus-get-new-mail () | "Fetch new mails at level x only." | (when (gnus-alive-p) | (let ((gnus-verbose-backends 1) | (gnus-verbose 1) | (win (current-window-configuration))) | (unwind-protect | (save-window-excursion | (save-excursion | (set-buffer gnus-group-buffer) | (gnus-group-get-new-news 4))) | (set-window-configuration win))))) `---- What I would like is when gnus can notify me when new mails arrived. p.e with a pop-up windows, or just an external program which might play a nice sound or however. Obviously, as far as I was able to understand, gnus-group-get-new-news does not really have a return value which I could exploit. But obvioudly this function has a hook: gnus-after-getting-new-news-hook (I assume this is executed everytime after trying to get new news, or only when there really came-in new news?) So when there is a function which can check a group for new news/mails, probably I should be able to write this hook myself. Probably something like this: (if (gnus-check-if-unread-messages-in-group) (call-process "whatever")) ; or pop up (x)emacs own pop-up messagewindow/sound Does anybody know the name of this ((fantasy-name): `gnus-check-if-unread-messages-in-group') function if it exists? Many Thanks -- calmar (o_ //\ <--- GNU/Linux is GREAT V_/_ www.calmar.ws