From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/68233 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: IMAP and Exchange 2007 - imap-fetch-safe Followup-To: gmane.emacs.gnus.general Date: Sat, 31 Jan 2009 16:27:25 +0100 Message-ID: <87wscblcma.fsf@marauder.physik.uni-ulm.de> References: <87iqphil5p.fsf@liv.ac.uk> <87ocz3n8d4.fsf@marauder.physik.uni-ulm.de> <87iqpa99wy.fsf@liv.ac.uk> <87wsde7t5j.fsf_-_@marauder.physik.uni-ulm.de> <86mye95p27.fsf@lifelogs.com> <878wpt48qj.fsf@marauder.physik.uni-ulm.de> <86d4eyvryx.fsf@lifelogs.com> <878wplcxws.fsf@marauder.physik.uni-ulm.de> <87k58za3q8.fsf@liv.ac.uk> <87k58zm99o.fsf_-_@marauder.physik.uni-ulm.de> <87fxjn9l7g.fsf@mocca.josefsson.org> <871vv1d50m.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 1233415689 2385 80.91.229.12 (31 Jan 2009 15:28:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 31 Jan 2009 15:28:09 +0000 (UTC) Cc: emacs-devel@gnu.org, ding@gnus.org, Bjorn Solberg To: Dave Love Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 31 16:29:18 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LTHmJ-0004Wy-6R for ged-emacs-devel@m.gmane.org; Sat, 31 Jan 2009 16:29:03 +0100 Original-Received: from localhost ([127.0.0.1]:42138 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTHl0-0008LV-UV for ged-emacs-devel@m.gmane.org; Sat, 31 Jan 2009 10:27:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LTHku-0008Kb-M7 for emacs-devel@gnu.org; Sat, 31 Jan 2009 10:27:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LTHkt-0008K6-TS for emacs-devel@gnu.org; Sat, 31 Jan 2009 10:27:36 -0500 Original-Received: from [199.232.76.173] (port=39238 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTHkt-0008K0-Pg for emacs-devel@gnu.org; Sat, 31 Jan 2009 10:27:35 -0500 Original-Received: from mail.uni-ulm.de ([134.60.1.11]:58350) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LTHkr-0007Ia-Fo; Sat, 31 Jan 2009 10:27:33 -0500 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 n0VFRT7k026375; Sat, 31 Jan 2009 16:27:29 +0100 (MET) Original-Received: from localhost (localhost [127.0.0.1]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id C6C8113557; Sat, 31 Jan 2009 16:27:28 +0100 (CET) X-Face: #vK]N[`vqjuod*|)'[iD7/"3AB-ApT%fmN"LWAg@oS7OesGv~)n[OBTLM#I="J'Y^-7I I/ps7o_'IK@#-Rs{::DZ@O8yS|fexe,XslY[:dNWOb~>?mC-&i_c)say:"\IpA.5U.b]'NY; Pks{lb h.+#6%DpZuaK3dcHB`Av3zc:r!C%~s0&m, tWj]&}, qg.+0ww2gK%f!:GK|wMl.I!(voY*1"^li8"~B BNG)9LvPi?^DMR-GVDnZqhu*3Hi, +g=wFhI)BL6&u{EOVEHjVEVq~d?_}lMntWAc3(6?kftjc>_f>! g0wM(qPM$d5]^TT_Qyi&L?LGVG)SHN;Gk/,pkY9,~ Mail-Followup-To: Dave Love , ding@gnus.org, Bjorn Solberg , emacs-devel@gnu.org In-Reply-To: <871vv1d50m.fsf@liv.ac.uk> (Dave Love's message of "Sat, 17 Jan 2009 20:58:01 +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-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:108461 gmane.emacs.gnus.general:68233 Archived-At: On Sat, Jan 17 2009, Dave Love wrote: > Simon Josefsson writes: > >> Maybe the problem is a condition-case within another condition-case >> work? I recall problems related to this when run as an async process >> filter. > > Yes -- signals from process filters are normally caught; I wasn't > thinking or looking closely enough at what the code does originally. I > must have had debug-on-error set when testing, but I was sure I'd > actually tried it in fresh Emacs. > >> Maybe it is possible to re-write the approach without using >> condition-case, that would likely be easier to debug anyway. > > I'm not sure it would be easier, but see the comment in the patch below. > I made it before reading this, and at least the fix over my previous > code is just an extra binding. It works for me in a fresh Emacs, and > isn't broken in Emacs 22. > >> I'd prefer to avoid sending the Exchange bug-workaround approach >> ("1,*:*") to any server that does not need it. I've seen servers that >> (internally) open up all e-mails in the folder and searches them, but >> for the 1,* approach was able to return data quickly. > > Obviously that's a good reason. Previous comments about efficiency that > I was referred to seemed to be about something different. > >> This may be old information now, but generally I don't see why >> imap.el should send poor protocol output to all servers just >> because Exchange is broken. > > [It does have workarounds for various other servers, not that I want to > defend Exchange in any way. Exchange 2007 is doing horrible things like > messing with MIME parts, which I don't think the previous version did, > and I wish I could avoid it.] > > Anyhow, per the comment in the patch, + ;; FIXME: Maybe it would be cleaner to have a flag to not signal + ;; the error (which otherwise gives a message), and test + ;; `imap-failed-tags'. Also, Other IMAP clients use other forms of + ;; request which work with Exchange, e.g. Claws does "UID FETCH 1:* + ;; (UID)" rather than "FETCH UID 1,*". Is there a good reason not + ;; to do the same? > is there a good reason -- other than simplicity? -- to use FETCH > rather than UID like other clients? I'm speaking mostly in > ignorance of IMAP... Comments? (Simon?) > 2009-01-17 Dave Love > > * imap.el (imap-fetch-safe): Bind debug-on-error. > (imap-debug): Add imap-fetch-safe. Installed. Bjorn (and others), does the auto-detection work for you with the current version from CVS? Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/