From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/2627 Path: news.gmane.org!not-for-mail From: Marcus Frings Newsgroups: gmane.emacs.gnus.user Subject: Re: gnus-demon-scan-mail problems Date: Mon, 16 Jun 2003 21:24:38 +0200 Organization: Schismatrix Message-ID: References: Reply-To: protagonist@gmx.net NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138668990 15817 80.91.229.2 (31 Jan 2006 00:56:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:56:30 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:30:58 2006 Original-Path: quimby.gnus.org!newsfeed.gazeta.pl!fu-berlin.de!uni-berlin.de!p508eaf57.dip.t-dialin.NET!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: p508eaf57.dip.t-dialin.net (80.142.175.87) Original-X-Trace: fu-berlin.de 1055791826 20792185 80.142.175.87 (16 [127360]) X-Orig-Path: mekong.dyndns.org!not-for-mail Mail-Copies-To: never X-PGP-Key: 0xE10F502E (DH/DSS) X-PGP-Fingerprint: 53FC 5A87 27BE 1D30 FEB4 861A 948F D6A0 E10F 502E X-Face: $[;GBu{%NxxO[]ap?u_JuWQ<;Hc8O^i>>%7gIuh>2i5?~O%$W1EH\0K"H!n?q6&g5JSVC)A@X'TU!$"xjJ*<{#'kt[nMXyQ9b>kb/OK[47]$)$fZEk|zzE)||'G8|^9wN\m]v_oT~3L'vg\+_[EC.VV_DqT1'|mtf,q(~>Z0~ User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:BAFzPZackHMYVkoVXwdn4zg5zZ4= Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:2767 Original-Lines: 51 X-Gnus-Article-Number: 2767 Tue Jan 17 17:30:58 2006 Xref: news.gmane.org gmane.emacs.gnus.user:2627 Archived-At: * Sam Steingold wrote: > 1. gnus-demon-scan-mail does not do anything if gnus is not alive. > this is not too nice: I want to watch for new mail even when I am > not reading news. > > 2. even when gnus is alive, gnus-demon-scan-mail does not appear to > change anything, i.e., even when there is new mail (either pop or > imap), gnus-demon-scan-mail does not notify me about it in any way. > > Does anyone use this functionality? Yes, I do. I read mails via IMAP, too. Here is my code which works perfectly for me: --8<---------------cut here---------------start------------->8--- (setq gnus-use-demon t) (defun gnus-demon-scan-news () (when (gnus-alive-p) (save-excursion (set-buffer gnus-group-buffer) (gnus-group-get-new-news)) ) ) (defun gnus-demon-scan-mail () (when (and (gnus-alive-p) mail-here) (save-excursion (set-buffer gnus-group-buffer) (gnus-group-get-new-news 3) ) ) ) (gnus-demon-add-handler 'gnus-demon-scan-news 5 10) (gnus-demon-init) --8<---------------cut here---------------end--------------->8--- As you can see I don't use the "gnus-demon-scan-mail"-function but mail checking works. Regards, Marcus -- "Tuba cum sonuerit dies erit extrema et iudex advenerit vocabit sempiterna electos in patria prescitos ad inferna."