From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/74618 Path: news.gmane.org!not-for-mail From: Steinar Bang Newsgroups: gmane.emacs.gnus.general Subject: Re: IMAP IDLE command Date: Thu, 02 Dec 2010 14:29:17 +0100 Organization: Probably a good idea Message-ID: References: <87zkst74to.fsf@kotik.lan> <87sjyj24iz.fsf@pcuds33.cern.ch> <87wrnu2tgl.fsf%lukasz.stelmach@iem.pw.edu.pl> <87aakpvxr6.fsf%lukasz.stelmach@iem.pw.edu.pl> <878w08jx2r.fsf%lukasz.stelmach@iem.pw.edu.pl> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1291296584 32754 80.91.229.12 (2 Dec 2010 13:29:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 2 Dec 2010 13:29:44 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M22974@lists.math.uh.edu Thu Dec 02 14:29:40 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PO9EC-00076R-40 for ding-account@gmane.org; Thu, 02 Dec 2010 14:29:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PO9EB-0002yY-1v; Thu, 02 Dec 2010 07:29:39 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PO9EA-0002yN-1E for ding@lists.math.uh.edu; Thu, 02 Dec 2010 07:29:38 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PO9E4-0002o0-Aq for ding@lists.math.uh.edu; Thu, 02 Dec 2010 07:29:37 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1PO9E3-00019Z-00 for ; Thu, 02 Dec 2010 14:29:31 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PO9E3-00072m-4Z for ding@gnus.org; Thu, 02 Dec 2010 14:29:31 +0100 Original-Received: from 62.113.137.5 ([62.113.137.5]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Dec 2010 14:29:31 +0100 Original-Received: from sb by 62.113.137.5 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Dec 2010 14:29:31 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 33 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 62.113.137.5 Mail-Copies-To: never User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.3 (gnu/linux) Cancel-Lock: sha1:aYiXx3VcS3/UV4m/8fQpLLWniiU= X-Spam-Score: -0.7 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:74618 Archived-At: >>>>> Ɓukasz Stelmach : > There is probably an option, however, `g'-ing when idle. Because I > like the Pomodoro Technique[1] so I take break on quite regular > basis. Gnus could check mail after few minutes if idleness. Here are my settings from my .gnus.el, dated 2003-05-15 23:23:19: ;; Automatically fetch news and mail every 15 minutes when idle (gnus-demon-add-handler 'gnus-demon-scan-news 15 t) 11 days later, on 2003-05-26 11:55:55, I changed it to the code below (I don't know why I made that change. I've messed up the commit, and committed it with another change in the same file. Maybe this was an experimental setting that got accidentally committed? Anyway it's been this way for quite a while... I don't know if it actually works, since it still seems to scan news when idle...): ;; Automatically fetch news and mail every 15 minutes when idle (defun sb-gnus-demon-scan-imap () (let ((win (current-window-configuration))) (unwind-protect (save-window-excursion (save-excursion (when (gnus-alive-p) (save-excursion (set-buffer gnus-group-buffer) (gnus-group-get-new-news 2))))) (set-window-configuration win)))) (gnus-demon-add-handler 'sb-gnus-demon-scan-imap 15 t) (gnus-demon-add-rescan)