From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/71420 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: slow nnimap moves due do many SELECTs Date: Wed, 22 Sep 2010 18:53:21 +0200 Organization: Programmerer Ingebrigtsen Message-ID: References: <87lj6tg8sc.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1285174440 26857 80.91.229.12 (22 Sep 2010 16:54:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 22 Sep 2010 16:54:00 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M19792@lists.math.uh.edu Wed Sep 22 18:53:59 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 1OySZu-0002Nj-83 for ding-account@gmane.org; Wed, 22 Sep 2010 18:53:54 +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 1OySZt-0003l3-0x; Wed, 22 Sep 2010 11:53:53 -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 1OySZn-0003iw-Jr for ding@lists.math.uh.edu; Wed, 22 Sep 2010 11:53:47 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1OySZj-0002mC-5w for ding@lists.math.uh.edu; Wed, 22 Sep 2010 11:53:47 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1OySZi-0003Ci-00 for ; Wed, 22 Sep 2010 18:53:42 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OySZh-0002HC-Dh for ding@gnus.org; Wed, 22 Sep 2010 18:53:41 +0200 Original-Received: from cm-84.215.34.171.getinternet.no ([84.215.34.171]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Sep 2010 18:53:41 +0200 Original-Received: from larsi by cm-84.215.34.171.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Sep 2010 18:53:41 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 39 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.34.171.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEUQGSnjv5ctOEN6aVa7 m3gLER0XJDkEBwtbEVHrAAACHElEQVQ4jXXSwY6bMBAAUIsVcEbhA5AJcEWM0z0TW+rVomu4Iq8g 1ygr6t/v2NjsptuOlEP8NJ4ZD4TYSFYbJa/XEPWX8/V88qBrSh2Q/S/LQ4YOkPwFKE9wOiBkuLvK /nTUpprIg8qeH7Bqov4NK1EYLkvDd3BZmv0XMk6hfgYrJctyACjWJJlxgAMSC0KIzk/mQSIICxn3 XXpQJAIHghdkv9qD0ggZgmhJ7PpXyhg8T3CMDFOYaKVaxpgQ40JBySxwyHgsu2EoPJgOa2Pwi+jb Dn69Q4CPs4XcwutPeHwCODjB5ZxfXuNNhhrmjvM5+GBdY+7YsIcB3FXi8sZbpd5UyNgiB5lozwyu 8BK1Hu7UjpHleccYvvEL8bCNbgwEoADXciQXn3EAP0P5w05MotTV3kEIwJvwkcxC5uI2Dw8KewYC UFXroSJaN7dZUxC+BuNFTGlUkFk3hbZgu7XL5TWhNcKkJrPJMgDHrcex3WAcp0pFJQvA/NIxbSFf QXS6cFBXVS01BBDiSndoGgSsjdC7pYeMaZqU9N26jE4SFbvXnUx0QCZ4OyxKDriPe4MP4q6y0fNq VYuWigxrY+wYIs96/OQs0ILiIyZzGjIsiGsVWTDkoabNjoGHmcCuutvvNMXKxO11B/wJ3jUbtoMw uoUj2C86Fxyqh2osDCv5BFwU0HFyMC6Nwj1/h0faSAcigEpvFsx2e4Zq/zz+ALUjD1I+0ytEAAAA AElFTkSuQmCC Mail-Copies-To: never X-Now-Playing: Sussan Deyhim, Bill Laswell's _Shy Angels_: "Negara" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:MJa5Ffk5UBKqVqGt3dwj1hFBQck= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:71420 Archived-At: 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. However, it's possible to imagine an interface where you say "here's a list of articles to move, and where they are going to be moved, and then you return the list of article numbers". Then nnimap could issue one SELECT for the group you're moving from, and one SELECT per mailbox it moved things to. So if you moved 400 messages to INBOX.ding, there'd be only two SELECTs. However, this would require quite a bit of fiddling with the interface functions... But there may be other ways to fix this that I'm not seeing? Is there a way to get the UID of a message without SELECTing the mailbox it's in first? Or a way to get the new UID from the UID COPY command? -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen