From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61515 Path: news.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: nnimap check for new mail in the background Date: Tue, 13 Dec 2005 17:24:36 +0100 Message-ID: References: <87irtzhs6x.fsf@ntnu.no> <83acf5f3c0.fsf@ntnu.no> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1134491400 31547 80.91.229.2 (13 Dec 2005 16:30:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 13 Dec 2005 16:30:00 +0000 (UTC) Original-X-From: ding-owner+m10047@lists.math.uh.edu Tue Dec 13 17:29:57 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EmD0b-0007yc-0z for ding-account@gmane.org; Tue, 13 Dec 2005 17:28:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1EmD0R-0002VU-00; Tue, 13 Dec 2005 10:27:59 -0600 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1EmCxR-0002VP-00 for ding@lists.math.uh.edu; Tue, 13 Dec 2005 10:24:53 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1EmCxO-0007KC-UH for ding@lists.math.uh.edu; Tue, 13 Dec 2005 10:24:53 -0600 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net ([217.13.230.178] helo=yxa.extundo.com) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1EmCxO-0005KR-00 for ; Tue, 13 Dec 2005 17:24:50 +0100 Original-Received: from latte.josefsson.org (jas@yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.13.4/8.13.4/Debian-3) with ESMTP id jBDGOgl6001986 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 13 Dec 2005 17:24:43 +0100 Original-To: ding@gnus.org OpenPGP: id=B565716F; url=http://josefsson.org/key.txt X-Hashcash: 1:21:051213:ding@gnus.org::NgCjzcdl2Shj7RrC:Kvtx In-Reply-To: <83acf5f3c0.fsf@ntnu.no> (Lars Tobias =?iso-8859-1?Q?B=F8rsti?= =?iso-8859-1?Q?ng's?= message of "Tue, 13 Dec 2005 16:01:51 +0100") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on yxa-iv X-Virus-Scanned: ClamAV version 0.84, clamav-milter version 0.84e on yxa.extundo.com X-Virus-Status: Clean X-MIME-Autoconverted: from 8bit to quoted-printable by yxa.extundo.com id jBDGOgl6001986 X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:61515 Archived-At: Lars Tobias B=F8rsting writes: >> It should not print the "Updating info" messages -- that will be much >> slower than regular new mail checking. It should only say "Quickly >> checking mailbox foo", for each nnimap mailbox. > > It isn't saying "Quickly checking mailbox foo", it says "nnimap: > Checking mailboxes...". It is also approximatelyten thousand times > faster than before, so thanks a lot! :-) This might depend on your gnus-verbose setting. >> However, recently (perhaps last month) I have noticed that Gnus CVS >> say "Updating info" for me too. Not always, but sometimes. So I >> think we have another bug. > > So, it doesn't say "Updating info" anymore after I changed to > "nnimap:foo". I haven't seen it either for a while now. I saw other problems as well, and when I removed my entire Agent cache, they went away. >>> Is it possible to do new mail checking in a separate thread that runs >>> in the background, so that it doesn't lock up the interface? If not, >>> is it hard to implement such a feature? >> >> It should be possible. Implement something run with the idle timer >> and iterate over all groups. The problem is in informing Gnus about >> the update -- there is no clean API to do that. It could be added, >> but I don't know how. > > Would it be possible to do what gnus-group-get-new-news-this-group does > when updating each modified group? (setq imap-log t) and look in the *imap-log* buffer, if you think of the IMAP protocol exchange. Otherwise, I recommend 'make tags' in .../gnus/lisp/ and then use of edebug stepping. (setq nnimap-debug t) and looking in the *nnimap-debug* might be simpler, though.