From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65870 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: Tue, 04 Dec 2007 14:46:10 +0100 Message-ID: <877iju7eu5.fsf@mocca.josefsson.org> References: <87bq97psi4.fsf@mocca.josefsson.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1196776041 20469 80.91.229.12 (4 Dec 2007 13:47:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Dec 2007 13:47:21 +0000 (UTC) Cc: ding@gnus.org To: nathanw@MIT.EDU (Nathan J. Williams) Original-X-From: ding-owner+M14365@lists.math.uh.edu Tue Dec 04 14:47:30 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 1IzY7V-0003aw-Gs for ding-account@gmane.org; Tue, 04 Dec 2007 14:47:29 +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 1IzY6M-0006Ox-11; Tue, 04 Dec 2007 07:46:18 -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 1IzY6K-0006On-Kw for ding@lists.math.uh.edu; Tue, 04 Dec 2007 07:46:16 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1IzY6E-0006mD-H4 for ding@lists.math.uh.edu; Tue, 04 Dec 2007 07:46:16 -0600 Original-Received: from yxa.extundo.com ([83.241.177.38]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1IzY6A-0007Fd-00 for ; Tue, 04 Dec 2007 14:46:06 +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 lB4Djpbc027555 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 4 Dec 2007 14:45:55 +0100 OpenPGP: id=B565716F; url=http://josefsson.org/key.txt Mail-Copies-To: nobody X-Hashcash: 1:22:071204:ding@gnus.org::WBYr6XNCB8Bi+MiX:0FF4 X-Hashcash: 1:22:071204:nathanw@mit.edu::tyzAdCNM2fPGQmSZ:Cqq0 In-Reply-To: (Nathan J. Williams's message of "Mon, 03 Dec 2007 13:14:57 -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:65870 Archived-At: nathanw@MIT.EDU (Nathan J. Williams) writes: > Simon Josefsson writes: > >> 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? > > Does it? "FETCH *:*" seems to only return one message, the last one, > which makes sense to me - it's the range of messages from last to > last. It's not a synonym for "1:*". Ah, ok, I didn't read carefully. Still, it seems bad style to send this to all servers. Maybe we could have a `imap-dont-send-one-comma-star' variable to toggle the behaviour, off by default? If you want, it could be automatically enabled if the server looks like a exchange server? Ideally it should set this if the normal command fails and the 1,*:* approach works, but that might be difficult to do. Although perhaps, upon login, it could EXAMINE the INBOX and do a FETCH 1,* to check for this, and upon failure test whether 1,*:* works, and if so, enable the workaround. It causes some additional round-trips to open a server, but maybe it is worth it. Perhaps it could only be done if the server looks like a exchange server, to avoid slowing down other servers. /Simon