From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/71426 Path: news.gmane.org!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.gnus.general Subject: Re: slow nnimap moves due do many SELECTs Date: Wed, 22 Sep 2010 13:09:39 -0400 Message-ID: <87sk11n1rg.fsf@maru.md5i.com> References: <87lj6tg8sc.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1285175422 32045 80.91.229.12 (22 Sep 2010 17:10:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 22 Sep 2010 17:10:22 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M19799@lists.math.uh.edu Wed Sep 22 19:10:21 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OySpo-0002tT-Ht for ding-account@gmane.org; Wed, 22 Sep 2010 19:10:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1OySpm-00044c-LB; Wed, 22 Sep 2010 12:10:18 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1OySpk-00044N-UQ for ding@lists.math.uh.edu; Wed, 22 Sep 2010 12:10:16 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1OySpg-0002tQ-I9 for ding@lists.math.uh.edu; Wed, 22 Sep 2010 12:10:16 -0500 Original-Received: from md5i.com ([75.151.244.229] helo=maru.md5i.com) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1OySpf-0003QF-00 for ; Wed, 22 Sep 2010 19:10:11 +0200 Original-Received: from md5i by maru.md5i.com with local (Exim 4.72) (envelope-from ) id 1OySp9-0007iZ-PQ for ding@gnus.org; Wed, 22 Sep 2010 13:09:39 -0400 In-Reply-To: (Lars Magne Ingebrigtsen's message of "Wed, 22 Sep 2010 18:53:21 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:71426 Archived-At: Lars Magne Ingebrigtsen writes: > Ted Zlatanov writes: > >> Moving N articles results in: >> >> 09:00:37 190 SELECT "INBOX" >> 09:00:37 191 UID FETCH 274385 BODY.PEEK[] >> 09:00:37 192 UID COPY 274385 "INBOX.ding" >> 09:00:37 193 UID STORE 274385 +FLAGS.SILENT (\Deleted) >> 09:00:37 194 UID EXPUNGE 274385 >> 09:00:37 195 SELECT "INBOX.ding" >> 09:00:37 196 UID SEARCH HEADER Message-Id "<87tylhhpie.fsf@lifelogs.com>" > > [...] > >> etc. for each article. Can than be optimized to switch mailboxes only >> once? > > Hm. Well, the thing is that we need to select the group we moved to to > find out what the article number we got was. Because Gnus needs that to > copy over the marks and other stuff. So copying an article from group A > to group B involves at least to SELECTs. You may not need to copy over the marks. The spec says: "The flags and internal date of the message(s) SHOULD be preserved, and the Recent flag SHOULD be set, in the copy." If the SHOULD is bothersome, it would be nice to have a per-server variable we can set if we know that that server handles this correctly. -- Michael Welsh Duggan (md5i@md5i.com)