From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65813 Path: news.gmane.org!not-for-mail From: nathanw@MIT.EDU (Nathan J. Williams) Newsgroups: gmane.emacs.gnus.general Subject: problem in connecting to Exchange 2007 - possible solution? Date: Thu, 29 Nov 2007 18:58:51 -0500 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1196380834 6635 80.91.229.12 (30 Nov 2007 00:00:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Nov 2007 00:00:34 +0000 (UTC) Cc: simon@josefsson.org, yif@iskoot.com To: ding@gnus.org Original-X-From: ding-owner+M14309@lists.math.uh.edu Fri Nov 30 01:00:40 2007 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 1IxtJ4-0000qX-Cd for ding-account@gmane.org; Fri, 30 Nov 2007 01:00:34 +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 1IxtI5-0000kH-IQ; Thu, 29 Nov 2007 17:59:33 -0600 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 1IxtI3-0000jx-QQ for ding@lists.math.uh.edu; Thu, 29 Nov 2007 17:59:31 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1IxtHx-0004AL-Ih for ding@lists.math.uh.edu; Thu, 29 Nov 2007 17:59:31 -0600 Original-Received: from biscayne-one-station.mit.edu ([18.7.7.80]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1IxtHu-0001bH-00 for ; Fri, 30 Nov 2007 00:59:22 +0100 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 lATNwqZa027098; Thu, 29 Nov 2007 18:58:53 -0500 (EST) 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 lATNwppV015995 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 29 Nov 2007 18:58:52 -0500 (EST) Original-Received: (from nathanw@localhost) by contents-vnder-pressvre.mit.edu (8.12.9.20060308) id lATNwp3w028923; Thu, 29 Nov 2007 18:58:51 -0500 (EST) 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:65813 Archived-At: Hi. My company's mail server was just moved to MS Exchange 2007, and I quickly ran into the IMAP problem described here: http://article.gmane.org/gmane.emacs.gnus.general/64775 which is that "FETCH 1,* UID" isn't supported by this server, and it returns with "BAD The specified message set is invalid" Some experimenting later, I found that "FETCH 1 UID" and "FETCH *:* UID" work individually to get the lowest and highest number; "FETCH 1,*:* UID" seems to do the same job as "FETCH 1,* UID". A quick patch followed: --- nnimap.el.~7.39.~ 2007-10-25 04:17:54.000000000 -0400 +++ nnimap.el 2007-11-29 18:55:53.546875000 -0500 @@ -555,7 +555,7 @@ (imap-mailbox-select group examine)) (let (minuid maxuid) (when (> (imap-mailbox-get 'exists) 0) - (imap-fetch "1,*" "UID" nil 'nouidfetch) + (imap-fetch "1,*:*" "UID" nil 'nouidfetch) (imap-message-map (lambda (uid Uid) (setq minuid (if minuid (min minuid uid) uid) maxuid (if maxuid (max maxuid uid) uid))) This was sufficent to make things work again for me. Any thoughts as to whether this is more or less proper than the original, IMAP-wise? It's certainly good to be able to work with a distressingly common corporate server. - Nathan