From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61529 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?Lars_Tobias_B=F8rsting?= Newsgroups: gmane.emacs.gnus.general Subject: Re: nnimap check for new mail in the background Date: Wed, 14 Dec 2005 11:31:12 +0100 Message-ID: <83wti8m0lr.fsf@ntnu.no> References: <87irtzhs6x.fsf@ntnu.no> <83acf5f3c0.fsf@ntnu.no> Reply-To: ding@gnus.org NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1134556924 2380 80.91.229.2 (14 Dec 2005 10:42:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 14 Dec 2005 10:42:04 +0000 (UTC) Original-X-From: ding-owner+m10061@lists.math.uh.edu Wed Dec 14 11:41:59 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EmU33-0006FA-1z for ding-account@gmane.org; Wed, 14 Dec 2005 11:39:49 +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 1EmU2p-0004is-00; Wed, 14 Dec 2005 04:39:35 -0600 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1EmTur-0004in-00 for ding@lists.math.uh.edu; Wed, 14 Dec 2005 04:31:21 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1EmTul-00005c-AB for ding@lists.math.uh.edu; Wed, 14 Dec 2005 04:31:21 -0600 Original-Received: from smtp.bluecom.no ([193.75.75.28]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1EmTuk-0003xP-00 for ; Wed, 14 Dec 2005 11:31:14 +0100 Original-Received: from localhost.localdomain (unknown [62.101.234.140]) by smtp.bluecom.no (Postfix) with ESMTP id 8CE7AC055EE for ; Wed, 14 Dec 2005 11:31:50 +0100 (CET) Original-To: ding@gnus.org In-Reply-To: (Simon Josefsson's message of "Tue, 13 Dec 2005 17:24:36 +0100") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/23.0.0 (gnu/linux) Mail-Followup-To: ding@gnus.org X-Spam-Score: -2.2 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:61529 Archived-At: Simon Josefsson writes: >>>> 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. Actually, I was thinking of how to notify Gnus of the changes. gnus-group-get-new-news and friends updates the group buffer, so maybe some of that code is usable. -- Regards, Lars Tobias