From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65858 Path: news.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: problem in connecting to Exchange 2007 - possible solution? Date: Mon, 03 Dec 2007 19:01:23 +0100 Message-ID: <87bq97psi4.fsf@mocca.josefsson.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1196704900 706 80.91.229.12 (3 Dec 2007 18:01:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Dec 2007 18:01:40 +0000 (UTC) Cc: ding@gnus.org To: nathanw@MIT.EDU (Nathan J. Williams) Original-X-From: ding-owner+M14353@lists.math.uh.edu Mon Dec 03 19:01:48 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 1IzFc2-0001R7-RN for ding-account@gmane.org; Mon, 03 Dec 2007 19:01:47 +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 1IzFbg-0008Up-Uw; Mon, 03 Dec 2007 12:01:25 -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 1IzFbf-0008UX-Nx for ding@lists.math.uh.edu; Mon, 03 Dec 2007 12:01:23 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1IzFbZ-00058Y-F5 for ding@lists.math.uh.edu; Mon, 03 Dec 2007 12:01:23 -0600 Original-Received: from yxa.extundo.com ([83.241.177.38]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1IzFbW-0006Gj-00 for ; Mon, 03 Dec 2007 19:01:14 +0100 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 lB3I17X8014397 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 3 Dec 2007 19:01:07 +0100 OpenPGP: id=B565716F; url=http://josefsson.org/key.txt Mail-Copies-To: nobody X-Hashcash: 1:22:071203:ding@gnus.org::nXLKV1ulPFRJfpOl:44lF X-Hashcash: 1:22:071203:nathanw@mit.edu::LxLLk9Zcrf6D9cwL:A0ui In-Reply-To: (Nathan J. Williams's message of "Mon, 03 Dec 2007 12:04:47 -0500") 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:65858 Archived-At: nathanw@MIT.EDU (Nathan J. Williams) writes: > nathanw@MIT.EDU (Nathan J. Williams) writes: > >> 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: > > I found two other places where a "FETCH *" needed to be replaced by > "FETCH *:*" to get things working properly. Patch follows. We shouldn't apply this so it is enabled by everyone, because it wastes bandwidth (sometimes by a large factor, bandwidth goes from O(1) to O(n) where n is the size of the mailbox...). Maybe you could rewrite this so that it is only used if some variable is enabled? /Simon