From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/68098 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: Problems with new imap-fetch-safe in XEmacs 21.4.21 Date: Wed, 07 Jan 2009 18:03:24 +0900 Organization: Emacsen advocacy group Message-ID: References: <84k598fki0.fsf@incoming.verizon.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1231319124 5681 80.91.229.12 (7 Jan 2009 09:05:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 7 Jan 2009 09:05:24 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M16543@lists.math.uh.edu Wed Jan 07 10:06:34 2009 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 1LKUMl-0005rc-8h for ding-account@gmane.org; Wed, 07 Jan 2009 10:06:19 +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 1LKUKe-0008EE-9I; Wed, 07 Jan 2009 03:04:08 -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 1LKUKa-0008Dt-Uo for ding@lists.math.uh.edu; Wed, 07 Jan 2009 03:04:04 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1LKUKX-0002fU-Os for ding@lists.math.uh.edu; Wed, 07 Jan 2009 03:04:04 -0600 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1LKUKo-0002e4-00 for ; Wed, 07 Jan 2009 10:04:18 +0100 Original-Received: from localhost ([127.0.0.1]:35176) by orlando.hostforweb.net with esmtpa (Exim 4.69) (envelope-from ) id 1LKUJw-0007Po-Sb for ding@gnus.org; Wed, 07 Jan 2009 03:03:25 -0600 X-Hashcash: 1:20:090107:ding@gnus.org::zYW+mokP+G0Zignt:000011Bj X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:dG60aQ6X8YR9NzziOrOz/Zl0hYo= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:68098 Archived-At: >>>>> Dave Goldberg wrote: > I get the following on GCC to an Exchange 2007 mailbox now. The GCC > actually does succeed but the error is annoying nonetheless. Lisp backtrace: > Debugger entered--Lisp error: (wrong-type-argument numberp "*:*") > signal(wrong-type-argument (numberp "*:*")) > byte-code("..." [receive props uids buffer imap-enable-exchange-bug-workaround data string-match "The specified message set is invalid" make-local-variable t imap-fetch signal nouidfetch] 5) > imap-fetch-safe(("*" "*:*") "UID") > imap-message-appenduid-1("Sent Items") [...] The first argument passed to `imap-fetch-safe' seems to have to be a cons, not a list. If that is a list, it is passed to `number-to-string' by way of `imap-list-to-message-set' and causes the `wrong-type-argument' error. This is no more than a guess since I don't use IMAP, but here is a patch: --8<---------------cut here---------------start------------->8--- --- imap.el~ 2009-01-04 21:39:51 +0000 +++ imap.el 2009-01-07 09:02:11 +0000 @@ -1870,7 +1870,7 @@ (imap-message-data (make-vector 2 0))) (when (imap-mailbox-examine-1 mailbox) (prog1 - (and (imap-fetch-safe '("*" "*:*") "UID") + (and (imap-fetch-safe '("*" . "*:*") "UID") (list (imap-mailbox-get-1 'uidvalidity mailbox) (apply 'max (imap-message-map (lambda (uid prop) uid) 'UID)))) --8<---------------cut here---------------end--------------->8---