From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67969 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: imap.el workaround for Exchange 2007 Date: Mon, 22 Dec 2008 23:38:31 +0100 Message-ID: <87ocz3n8d4.fsf@marauder.physik.uni-ulm.de> References: <87iqphil5p.fsf@liv.ac.uk> Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1229985594 16688 80.91.229.12 (22 Dec 2008 22:39:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Dec 2008 22:39:54 +0000 (UTC) Cc: simon@josefsson.org, ding@gnus.org, bugs@gnus.org To: Dave Love Original-X-From: ding-owner+M16415@lists.math.uh.edu Mon Dec 22 23:40:58 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 1LEtS7-0006E5-MT for ding-account@gmane.org; Mon, 22 Dec 2008 23:40:44 +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 1LEtQG-0003Lr-5a; Mon, 22 Dec 2008 16:38:48 -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 1LEtQE-0003LV-M3 for ding@lists.math.uh.edu; Mon, 22 Dec 2008 16:38:46 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1LEtQB-00071M-AG for ding@lists.math.uh.edu; Mon, 22 Dec 2008 16:38:46 -0600 Original-Received: from mail.uni-ulm.de ([134.60.1.11]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1LEtQO-0002Y0-00; Mon, 22 Dec 2008 23:38:56 +0100 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.175]) by mail.uni-ulm.de (8.14.2/8.14.2) with ESMTP id mBMMcbuF020505; Mon, 22 Dec 2008 23:38:38 +0100 (MET) Original-Received: from localhost (localhost [127.0.0.1]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id 11AB813542; Mon, 22 Dec 2008 23:38:37 +0100 (CET) X-Face: mtjf/D:es1T0wHO:&CJ'ZXe"l;3C--rw\z!{`eFwL){|]RpI+4{u25L=5C /0>KuGeTsk<~<&NE-AKV1560e!+RJeyWmSskkrJm?[vUV#66{T_m|Ae<||Ku#Mk5`y&O`n~z2;n8eP J5#2h@2eQgV@E70IY_0WlEx!"&giy{+\%h1LJox$zv@/l%ZmU4^tZA>xQpnkUBVC5.jpg#0'(+2?Rs )NAr:>3<=WxHE$ktbLysDIM5TbmHu*3, simon@josefsson.org, ding@gnus.org In-Reply-To: <87iqphil5p.fsf@liv.ac.uk> (Dave Love's message of "Thu, 18 Dec 2008 14:59:46 +0000") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.1 (gnu/linux) X-DCC-CTc-dcc1-Metrics: poseidon 1030; Body=4 Fuz1=4 Fuz2=4 X-Virus-Scanned: by amavisd-new X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67969 Archived-At: On Thu, Dec 18 2008, Dave Love wrote: > Although this Microsoft product is apparently at least a year past its > sell-by date, we just got it, and it broke my mail reading (which was OK > with the one with a sell-by date of 2003). > > The first problem was fixed by `imap-enable-exchange-bug-workaround'. > However, you're only likely to find that variable when debugging the > breakage. Why doesn't it use `*' generally -- as that seems to be > equivalent -- and remove the need for users to find that variable? You meant "*:*" (i.e. the variant used if `imap-enable-exchange-bug-workaround' is t)? If I recall the discussion correctly, this is much slower. Cf. . > Alternatively, perhaps it should check for Exchange and set it > (per-server?) automatically, This has been discussed, but nobody implemented it yet. I also think this would be the right thing. > or otherwise at least provide a user variable to customize. Making `imap-enable-exchange-bug-workaround' customizable? > The next problem (of many, doubtless...) is an assertion failure "In > imap-parse-body". I get a response like this for Exchange's version of > article > , > which I get direct from the gridengine list: > > > * 161 FETCH (UID 4779 RFC822.SIZE 35507 BODY ("multipart" "signed" > ("boundary" "----=_Part_2607_14582877.1229556098849") NIL NIL NIL > -1) BODY[HEADER.FIELDS (Subject From Date Message-Id References > In-Reply-To Xref X-Spam-Status X-Bogosity X-CRM114-Status To > Newsgroups)] {725} [...] > )230 OK FETCH completed. > > Note the `-1' where there should be an unsigned integer, says rfc 3501: > > body-fields = body-fld-param SP body-fld-id SP body-fld-desc SP > body-fld-enc SP body-fld-octets > body-fld-octets = number > number = 1*DIGIT > ; Unsigned 32-bit integer > > The following patch against current CVS fixes it for me (see the last > hunk). I also fixed some doc/commentary, and I assume the KTH mail > address is obsolete. > > 2008-12-18 Dave Love > > * imap.el: Fix author email. Doc fixes. > (imap-parse-body): Work around assertion failure in bogus Exchange 2007 > reply. > > --- imap.el 22 Jun 2008 13:24:10 +0100 7.47 > +++ imap.el 18 Dec 2008 14:10:53 +0000 [... fixes for docs and comments stripped ] > @@ -2862,7 +2871,12 @@ > ;; as the standard says. > (push (or (imap-parse-nstring) "7BIT") body) ;; body-fld-enc > (imap-forward) > - (push (imap-parse-number) body) ;; body-fld-octets > + ;; Exchange 2007 can return -1, contrary to the spec... > + (if (eq (char-after) ?-) > + (progn > + (skip-chars-forward "-0-9") > + (push nil body)) > + (push (imap-parse-number) body)) ;; body-fld-octets Installed. (IIRC you still have write access to the repository, don't you?) Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/