From: "Andrew A. Raines" <aaraines@pobox.com>
Subject: Re: Scan-mail daemon
Date: Tue, 18 Jan 2005 22:01:45 -0600 [thread overview]
Message-ID: <873bwyrrrq.fsf@mid.packer.its.vanderbilt.edu> (raw)
In-Reply-To: <yoijis5ufkpr.fsf@eorl.dd.chalmers.se>
bojohan+news@dd.chalmers.se (Johan Bockgård) writes:
> "Andrew A. Raines" <aaraines@pobox.com> writes:
>
>> Maybe you mean one of these instead of gnus-demon-scan-mail?
>>
>> ,----[ C-h f gnus-demon-scan-mail-and-update RET ]
>> | gnus-demon-scan-mail-and-update is a Lisp function in `~/.gnus'.
> ^
> Note ----------------------------------------------------------´
Oh yeah! I forgot I copied those from somewhere a long time
ago. I don't use them anymore.
David, here is that setup. It makes Gnus check for mail
every 5 minutes and news every 30.
;; automatic mail scan without manual effort.
;;
;; level-specified group scanner.
(defun gnus-demon-scan-mail-or-news-and-update (level)
"Scan for new mail, updating the *Group* buffer."
(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 level)))))
(set-window-configuration win))))
;;
;; level 2: only mail groups are scanned.
(defun gnus-demon-scan-mail-and-update ()
"Scan for new mail, updating the *Group* buffer."
(gnus-demon-scan-mail-or-news-and-update 2))
(gnus-demon-add-handler 'gnus-demon-scan-mail-and-update 5 t)
;;
;; level 3: mail and local news groups are scanned.
(defun gnus-demon-scan-news-and-update ()
"Scan for new mail, updating the *Group* buffer."
(gnus-demon-scan-mail-or-news-and-update 3))
(gnus-demon-add-handler 'gnus-demon-scan-news-and-update 30 t)
--
aaraines@pobox.com (Andrew A. Raines)
prev parent reply other threads:[~2005-01-19 4:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <m3acr6k888.fsf@ceres.staly.plus.com>
2005-01-18 17:31 ` Andrew A. Raines
[not found] ` <yoijis5ufkpr.fsf@eorl.dd.chalmers.se>
2005-01-19 4:01 ` Andrew A. Raines [this message]
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=873bwyrrrq.fsf@mid.packer.its.vanderbilt.edu \
--to=aaraines@pobox.com \
/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).