From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general,gmane.emacs.devel Subject: Re: Exchange 2007 Issues When Copying Between Folders Date: Wed, 02 Apr 2008 00:08:26 +0200 Message-ID: <87bq4tw7mt.fsf@mocca.josefsson.org> References: <767ifjymej.fsf@dev-d01.ppllc.com> <868wzypw22.fsf@lifelogs.com> <878wzxr7ny.fsf@mocca.josefsson.org> <87bq4tteuj.fsf@srcf.ucam.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1207087748 12856 80.91.229.12 (1 Apr 2008 22:09:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Apr 2008 22:09:08 +0000 (UTC) Cc: Jake Colman , ding@gnus.org, Emacs developers To: Ted Zlatanov Original-X-From: ding-owner+M15128@lists.math.uh.edu Wed Apr 02 00:09:39 2008 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.50) id 1Jgofh-0006Lp-PG for ding-account@gmane.org; Wed, 02 Apr 2008 00:09:38 +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 1Jgoez-0006MN-Nc; Tue, 01 Apr 2008 17:08:53 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Jgoey-0006M8-CW for ding@lists.math.uh.edu; Tue, 01 Apr 2008 17:08:52 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1Jgoes-0005FE-44 for ding@lists.math.uh.edu; Tue, 01 Apr 2008 17:08:52 -0500 Original-Received: from yxa.extundo.com ([83.241.177.38]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Jgof0-0000ch-00 for ; Wed, 02 Apr 2008 00:08:54 +0200 Original-Received: from mocca.josefsson.org (yxa.extundo.com [83.241.177.38]) (authenticated bits=0) by yxa.extundo.com (8.13.4/8.13.4/Debian-3sarge3) with ESMTP id m31M8QIB004890 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 2 Apr 2008 00:08:26 +0200 In-Reply-To: <87bq4tteuj.fsf@srcf.ucam.org> (Gaute Strokkenes's message of "Tue, 01 Apr 2008 23:00:52 +0100") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux) OpenPGP: id=B565716F; url=http://josefsson.org/key.txt X-Hashcash: 1:22:080401:colman@ppllc.com::nJ8W7CawPrpVaOLe:8YbO X-Hashcash: 1:22:080401:tzz@lifelogs.com::BIeWqgToJQc96xy8:CIsL X-Hashcash: 1:22:080401:ding@gnus.org::8mBllKz6xiFCPjoT:WuFR X-Hashcash: 1:22:080401:emacs-devel@gnu.org::ckNgda8Xavq7PLhf:wLAQ X-Spam-Status: No, score=0.3 required=4.0 tests=MAILTO_TO_SPAM_ADDR,SPF_PASS autolearn=disabled version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on yxa-iv X-Virus-Scanned: ClamAV version 0.88.2, clamav-milter version 0.88.2 on yxa.extundo.com X-Virus-Status: Clean X-Spam-Score: -2.5 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:66644 gmane.emacs.devel:94142 Archived-At: Gaute Strokkenes writes: > On 1 april 2008, simon@josefsson.org wrote: > > [snip] >> However, the recently installed patch for Gnus is definitely the wrong >> thing: >> >> - (imap-fetch "1,*" "UID" nil 'nouidfetch) >> + (imap-fetch "1:*" "UID" nil 'nouidfetch) >> >> This generates thousands and thousands of unnecessary lines of output, >> such as: >> >> 669 FETCH 1:* UID >> * 1 FETCH (UID 53159) >> * 2 FETCH (UID 53160) >> * 3 FETCH (UID 53161) >> ... >> * 103915 FETCH (UID 157074) >> * 103916 FETCH (UID 157075) >> * 103917 FETCH (UID 157076) >> 669 OK Completed >> >> That's about 2-3MB of output, and that was getting information for one >> of my folders (I subscribe to maybe 100-150 folders..). >> >> This slows down pressing 'g' on my server from sub-seconds to a very >> long time (I pressed C-g after half a minute). >> >> This is how the output should look like: >> >> 698 FETCH 1,* UID >> * 1 FETCH (UID 53159) >> * 103918 FETCH (UID 157077) >> 698 OK Completed >> >> That's 89 bytes and takes ms's to transfer. > > If I understand correctly, what this command is intended to do is to > retrieve the UID of the last and first messags in the mailbox. Yes. > If so, would it not be possible to use a pair of FETCH commands > instead? Perhaps, those with exchange servers could test this. The patch would then be. Jake, does this patch (against latest CVS) also work for you? If it works, it should definitely be faster than 1:* queries. --- nnimap.el 01 Apr 2008 16:27:27 +0200 7.45 +++ nnimap.el 02 Apr 2008 00:07:39 +0200 @@ -568,8 +568,10 @@ (imap-mailbox-select group examine)) (let (minuid maxuid) (when (> (imap-mailbox-get 'exists) 0) - (imap-fetch (if nnimap-enable-minmax-bug-workaround "1:*" "1,*") - "UID" nil 'nouidfetch) + (if (not nnimap-enable-minmax-bug-workaround) + (imap-fetch "1,*" "UID" nil 'nouidfetch) + (imap-fetch "1" "UID" nil 'nouidfetch) + (imap-fetch "*" "UID" nil 'nouidfetch)) (imap-message-map (lambda (uid Uid) (setq minuid (if minuid (min minuid uid) uid) maxuid (if maxuid (max maxuid uid) uid))) /Simon