Gnus development mailing list
 help / color / mirror / Atom feed
From: Steinar Bang <sb@dod.no>
To: ding@gnus.org
Subject: Re: IMAP IDLE command
Date: Thu, 02 Dec 2010 14:29:17 +0100	[thread overview]
Message-ID: <yb0zksowbf6.fsf@dod.no> (raw)
In-Reply-To: <878w08jx2r.fsf%lukasz.stelmach@iem.pw.edu.pl>

>>>>> Łukasz Stelmach <lukasz.stelmach@iem.pw.edu.pl>:

> 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)




  reply	other threads:[~2010-12-02 13:29 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-28 17:09 Łukasz Stelmach
2010-11-28 17:31 ` Byung-Hee HWANG
2010-11-28 21:21   ` Łukasz Stelmach
2010-11-28 21:23   ` Łukasz Stelmach
2010-11-29  4:36 ` Lars Magne Ingebrigtsen
2010-11-29  5:10   ` Daniel Pittman
2010-11-29  6:21     ` Łukasz Stelmach
2010-11-29  7:38       ` Frank Schmitt
2010-11-29 21:25         ` Łukasz Stelmach
2010-11-29 21:37           ` Dan Christensen
2010-12-14 23:20     ` Ted Zlatanov
2010-12-15 19:34       ` Lars Magne Ingebrigtsen
2010-12-15 21:04         ` Ted Zlatanov
2010-11-29 21:39   ` Tibor Simko
2010-12-01  1:05     ` Łukasz Stelmach
2010-12-01  8:50       ` Steinar Bang
2010-12-02  0:12         ` Łukasz Stelmach
2010-12-02  9:07           ` Steinar Bang
2010-12-02 10:19             ` Łukasz Stelmach
2010-12-02 13:29               ` Steinar Bang [this message]
2010-12-02 18:25                 ` Łukasz Stelmach
2010-12-02 13:37               ` Julien Danjou
2010-12-02 18:13                 ` Łukasz Stelmach

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=yb0zksowbf6.fsf@dod.no \
    --to=sb@dod.no \
    --cc=ding@gnus.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).