From: Amos Gouaux <amos+lists.ding@utdallas.edu>
Subject: Re: nnimap - not quite there yet?
Date: Wed, 08 Aug 2001 18:45:33 -0500 [thread overview]
Message-ID: <q6m1ymmf74y.fsf@spartacus.utdallas.edu> (raw)
In-Reply-To: <u8zgub8ie.fsf@terrapin.northbound-train.com> (Joe Casadonte's message of "08 Aug 2001 16:29:29 -0400")
>>>>> On 08 Aug 2001 16:29:29 -0400,
>>>>> Joe Casadonte <jcasadonte@northbound-train.com> (jc) writes:
jc> 1) Despite everything I've tried, mostly with levels, I cannot avoid
jc> having all accounts logged into at Gnus startup. I only want two
jc> or three accounts checked, and I'll check the others once every
I do this to some extent. I just have my primary inbox listed under
gnus-secondary-select-methods. All the rest I've set up a foreign
groups under the server buffer (press ^ from the *Groups* buffer).
jc> 2) Again, despite attempts to change the behavior (mostly with levels)
jc> I cannot avoid having nnimap check every folder when I do a
jc> gnus-group-get-new-news. The folders don't /activate/, mind you, but
jc> I have to sit thru every one of them being checked.
This is from code that has been posted by others before, but here it
is again, probably poorly mangled. ;-)
;;; This is used by gnus-demon-add-handler to check for
;;; new mail periodically. I have my inbox set at level 1,
;;; while all my favorite folders are at level 2. In the
;;; Group buffer, the command `S l' can be used to
;;; set a group level. This one is run every 5 minutes.
(defun gnus-demon-scan-mail-groups1 ()
(save-window-excursion
(when (gnus-alive-p)
(save-excursion
(set-buffer gnus-group-buffer)
(gnus-group-get-new-news 1)))))
;;; I have this one run every 17min.
(defun gnus-demon-scan-mail-groups2 ()
(save-window-excursion
(when (gnus-alive-p)
(save-excursion
(set-buffer gnus-group-buffer)
(gnus-group-get-new-news 2)))))
;;; Hook that does that vast majority of gnus customization.
;;; (I set this up long, long ago, and suspect there's a better
;;; way to do this now...)
(add-hook
'gnus-startup-hook
(function
(lambda ()
;; Check for new mail every 5 minutes after being idle for 5 minute.
(gnus-demon-add-handler 'gnus-demon-scan-mail-groups1 5 5)
;; This check is for "favorite" folders that aren't quite as important.
(gnus-demon-add-handler 'gnus-demon-scan-mail-groups2 17 17)
;; .... lots of other junk...
)))
So, I set my inbox at level one. Folders that receive new mail that
I want to keep a close eye on at level two. My folders that I don't
want to be polled at startup at level 4. Newsgroups and stuff at
level 3 (the default). When I want to just check my inbox, in the
*Group* buffer I just do `1 g'. If I want to check some of the
shared folders, `2 g'. I only use plain `g' if I want to check
everything (at level 3 and above).
jc> 3) For each virtual IMAP server, an imap process is launched and kept
jc> hanging around. With 9 virtual servers, that's just too much. It
I would probably just go into the server buffer and close the
sessions I didn't need.
--
Amos
next prev parent reply other threads:[~2001-08-08 23:45 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-08 20:29 Joe Casadonte
2001-08-08 22:11 ` Kai Großjohann
2001-08-09 19:56 ` Joe Casadonte
2001-08-09 21:52 ` Kai Großjohann
2001-08-09 22:06 ` Paul Jarc
2001-08-09 22:39 ` Kai Großjohann
2001-08-17 19:33 ` Simon Josefsson
2001-08-08 23:45 ` Amos Gouaux [this message]
2001-08-09 6:41 ` Peter Weiss, Sun Microsystems, Germany
2001-08-09 20:23 ` Joe Casadonte
2001-08-09 21:31 ` Joe Casadonte
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=q6m1ymmf74y.fsf@spartacus.utdallas.edu \
--to=amos+lists.ding@utdallas.edu \
/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).