From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/66646 Path: news.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: the Exchange 2007 fix Date: Wed, 02 Apr 2008 00:41:17 +0200 Message-ID: <87zlsdurjm.fsf@mocca.josefsson.org> References: <86wsnmvrmx.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1207089710 18690 80.91.229.12 (1 Apr 2008 22:41:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Apr 2008 22:41:50 +0000 (UTC) Cc: Ted Zlatanov , "Michael Harnois" , ding@gnus.org To: nathanw@MIT.EDU (Nathan J. Williams) Original-X-From: ding-owner+M15130@lists.math.uh.edu Wed Apr 02 00:42:22 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 1JgpBN-0008OC-7i for ding-account@gmane.org; Wed, 02 Apr 2008 00:42:21 +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 1JgpAc-0006aj-KR; Tue, 01 Apr 2008 17:41:34 -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 1JgpAb-0006aZ-GI for ding@lists.math.uh.edu; Tue, 01 Apr 2008 17:41:33 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1JgpAV-0008FZ-0C for ding@lists.math.uh.edu; Tue, 01 Apr 2008 17:41:33 -0500 Original-Received: from yxa.extundo.com ([83.241.177.38]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1JgpAe-0001BS-00 for ; Wed, 02 Apr 2008 00:41:36 +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 m31MfHC7008729 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 2 Apr 2008 00:41:17 +0200 OpenPGP: id=B565716F; url=http://josefsson.org/key.txt X-Hashcash: 1:22:080401:tzz@lifelogs.com::y0s+JoFXGxhSwZUV:4xCO X-Hashcash: 1:22:080401:nathanw@mit.edu::t6VKaAmMLvLPjwzw:5K2y X-Hashcash: 1:22:080401:ding@gnus.org::o7F+itWowYc4GZPS:EPP8 X-Hashcash: 1:22:080401:mdharnois@gmail.com::eI3LT3KQcHPWlcQf:EpIg In-Reply-To: (Nathan J. Williams's message of "Tue, 01 Apr 2008 18:30:52 -0400") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux) X-Spam-Status: No, score=-0.0 required=4.0 tests=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:66646 Archived-At: nathanw@MIT.EDU (Nathan J. Williams) writes: > Ted Zlatanov writes: > >> On Mon, 24 Mar 2008 14:31:16 -0500 "Michael Harnois" wrote: >> >> MH> It doesn't seem to be the only fix needed, but I think it's the Big Kahuna. >> MH> mharnois:lisp mdharnois$ diff -urN nnimap.el nnimap.el.orig >> MH> --- nnimap.el 2008-03-24 14:16:40.000000000 -0500 >> MH> +++ nnimap.el.orig 2008-02-07 11:36:36.000000000 -0600 >> MH> @@ -555,7 +555,7 @@ >> MH> (imap-mailbox-select group examine)) >> MH> (let (minuid maxuid) >> MH> (when (> (imap-mailbox-get 'exists) 0) >> MH> - (imap-fetch "1:*" "UID" nil 'nouidfetch) >> MH> + (imap-fetch "1,*" "UID" nil 'nouidfetch) >> MH> (imap-message-map (lambda (uid Uid) >> MH> (setq minuid (if minuid (min minuid uid) uid) >> MH> maxuid (if maxuid (max maxuid uid) uid))) >> >> Since it was a tiny fix I comitted it. It seems to work fine with >> Exchange 2007 and Courier IMAP. > > Please see: http://comments.gmane.org/gmane.emacs.gnus.general/65855 > > I think we can use "1,*:*" instead of "1:*" to get the min-max effect > without the effect of pulling down all the UIDs in the group; it's > what I've been using in my local copy of Gnus since December against > an Exchange 2007 server. So maybe this patch would work better? However, it doesn't take care of the imap.el problems you mentioned in that thread. Perhaps the bug-workaround variable should be a imap.el variable rather than a nnimap.el variable? Hm. --- nnimap.el 01 Apr 2008 16:27:27 +0200 7.45 +++ nnimap.el 02 Apr 2008 00:38:11 +0200 @@ -568,7 +568,7 @@ (imap-mailbox-select group examine)) (let (minuid maxuid) (when (> (imap-mailbox-get 'exists) 0) - (imap-fetch (if nnimap-enable-minmax-bug-workaround "1:*" "1,*") + (imap-fetch (if nnimap-enable-minmax-bug-workaround "1,*:*" "1,*") "UID" nil 'nouidfetch) (imap-message-map (lambda (uid Uid) (setq minuid (if minuid (min minuid uid) uid) /Simon