From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/66645 Path: news.gmane.org!not-for-mail From: nathanw@MIT.EDU (Nathan J. Williams) Newsgroups: gmane.emacs.gnus.general Subject: Re: the Exchange 2007 fix Date: Tue, 01 Apr 2008 18:30:52 -0400 Message-ID: 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 1207089120 16956 80.91.229.12 (1 Apr 2008 22:32:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Apr 2008 22:32:00 +0000 (UTC) Cc: "Michael Harnois" , ding@gnus.org To: Ted Zlatanov , simon@josefsson.org Original-X-From: ding-owner+M15129@lists.math.uh.edu Wed Apr 02 00:32:30 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 1Jgp1m-00057g-8U for ding-account@gmane.org; Wed, 02 Apr 2008 00:32:26 +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 1Jgp0y-0006Vb-U1; Tue, 01 Apr 2008 17:31:36 -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 1Jgp0x-0006VO-Na for ding@lists.math.uh.edu; Tue, 01 Apr 2008 17:31:35 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1Jgp0r-0008AM-6B for ding@lists.math.uh.edu; Tue, 01 Apr 2008 17:31:35 -0500 Original-Received: from biscayne-one-station.mit.edu ([18.7.7.80]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Jgp0z-0000zR-00 for ; Wed, 02 Apr 2008 00:31:37 +0200 Original-Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by biscayne-one-station.mit.edu (8.13.6/8.9.2) with ESMTP id m31MUsJb002518; Tue, 1 Apr 2008 18:30:54 -0400 (EDT) Original-Received: from contents-vnder-pressvre.mit.edu (CONTENTS-VNDER-PRESSVRE.MIT.EDU [18.7.18.65]) (authenticated bits=56) (User authenticated as nathanw@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id m31MUrm2007819 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 1 Apr 2008 18:30:53 -0400 (EDT) Original-Received: (from nathanw@localhost) by contents-vnder-pressvre.mit.edu (8.12.9.20060308) id m31MUrVt001716; Tue, 1 Apr 2008 18:30:53 -0400 (EDT) In-Reply-To: <86wsnmvrmx.fsf@lifelogs.com> (Ted Zlatanov's message of "Fri\, 28 Mar 2008 09\:40\:22 -0500") X-Scanned-By: MIMEDefang 2.42 X-Spam-Flag: NO X-Spam-Score: 0.00 X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:66645 Archived-At: 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. - Nathan