From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/66587 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: the Exchange 2007 fix Date: Fri, 28 Mar 2008 09:40:22 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <86wsnmvrmx.fsf@lifelogs.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1206715210 2551 80.91.229.12 (28 Mar 2008 14:40:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Mar 2008 14:40:10 +0000 (UTC) Cc: ding@gnus.org To: "Michael Harnois" Original-X-From: ding-owner+M15073@lists.math.uh.edu Fri Mar 28 15:40:41 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 1JfFjc-0001GR-Pi for ding-account@gmane.org; Fri, 28 Mar 2008 15:39:13 +0100 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 1JfFis-0007ZD-4J; Fri, 28 Mar 2008 09:38:26 -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 1JfFir-0007Z2-2d for ding@lists.math.uh.edu; Fri, 28 Mar 2008 09:38:25 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1JfFil-0001cv-3p for ding@lists.math.uh.edu; Fri, 28 Mar 2008 09:38:24 -0500 Original-Received: from mail.blockstar.com ([170.224.69.95]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1JfFit-00042K-00 for ; Fri, 28 Mar 2008 15:38:27 +0100 Original-Received: from tzlatanov-ubuntu-desktop.jumptrading.com (unknown [38.98.147.130]) by mail.blockstar.com (Postfix) with ESMTP id 3C85A3F8FAF; Fri, 28 Mar 2008 07:43:29 -0700 (PDT) X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" X-Hashcash: 1:20:080328:mdharnois@gmail.com::4pO5ZhQqzqQhT5ze:0000000000000000000000000000000000000000000uf8 X-Hashcash: 1:20:080328:ding@gnus.org::GofVgInnSzd4tRj5:00005BmT In-Reply-To: (Michael Harnois's message of "Mon, 24 Mar 2008 14:31:16 -0500") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:66587 Archived-At: 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. If you find any other places to fix the IMAP handling with Exchange, many uses will greatly appreciate it. Ted