From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/66647 Path: news.gmane.org!not-for-mail From: mdharnois@gmail.com (Michael D. Harnois) Newsgroups: gmane.emacs.gnus.general Subject: Re: the Exchange 2007 fix Date: Tue, 01 Apr 2008 18:03:43 -0500 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 1207091259 23434 80.91.229.12 (1 Apr 2008 23:07:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Apr 2008 23:07:39 +0000 (UTC) Cc: Ted Zlatanov , simon@josefsson.org, ding@gnus.org To: nathanw@MIT.EDU (Nathan J. Williams) Original-X-From: ding-owner+M15131@lists.math.uh.edu Wed Apr 02 01:08:10 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 1JgpaM-0008OA-9k for ding-account@gmane.org; Wed, 02 Apr 2008 01:08:10 +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 1JgpZS-0006mn-AD; Tue, 01 Apr 2008 18:07:14 -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 1JgpWJ-0006l2-Mh for ding@lists.math.uh.edu; Tue, 01 Apr 2008 18:03:59 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1JgpWD-0008PQ-93 for ding@lists.math.uh.edu; Tue, 01 Apr 2008 18:03:59 -0500 Original-Received: from py-out-1112.google.com ([64.233.166.181]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1JgpWM-0001SI-00 for ; Wed, 02 Apr 2008 01:04:02 +0200 Original-Received: by py-out-1112.google.com with SMTP id d32so2683750pye.12 for ; Tue, 01 Apr 2008 16:03:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:to:cc:subject:references:date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=435EX1B+UxUOh7hboMHZzFdQh3yFmIHN/OZ0s3s+JwU=; b=sItCVAhujhfL6ivXrEdMyEkd0tzXggF0FUmCrtPfP/CDg9kslRimUC69ZoC/YHzUlg239uhz0YkXaYa+Y3bXZkM9jLacgDcbnLcLQmwbstUBKBAASdHbVF4giFYqR9hvjb1WJAjXjjs6d15sd5KwRjOQtimAjmOHwXUIkEyyhnI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=from:to:cc:subject:references:date:in-reply-to:message-id:user-agent:mime-version:content-type; b=pH3YaEkJcV7u22Lc3AXVdhCYC3MXY5uKN5xBoOTYxDSb3BRTccIfPq9n4lBF8FtNKrH3ab7yfqlL8cusnsrJaEe6g11CAp/WHHUBp8hpnLQH22QLmklMrtvBpF20k3SM5fTWoDAXk6YZcdeDrbx4mQe1cbBrOgCL+cdqCtwRsA8= Original-Received: by 10.35.54.19 with SMTP id g19mr14723733pyk.17.1207091028952; Tue, 01 Apr 2008 16:03:48 -0700 (PDT) Original-Received: from mharnois.gateway.2wire.net ( [97.112.105.23]) by mx.google.com with ESMTPS id n63sm1711014pyh.8.2008.04.01.16.03.46 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 01 Apr 2008 16:03:47 -0700 (PDT) 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.2.50 (darwin) X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:66647 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. > > - Nathan A thing of beauty. Actually, my great source of perplexment is that I pored over RFC 3501 for hours and could not find an example of the "1,*" syntax anywhere.