From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61483 Path: news.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: [Fwd: UTF7 decode error in Gnus with IMAP] Date: Fri, 09 Dec 2005 17:23:13 +0100 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1134145639 14760 80.91.229.2 (9 Dec 2005 16:27:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 9 Dec 2005 16:27:19 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+m10015@lists.math.uh.edu Fri Dec 09 17:27:11 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Ekl2R-0005nR-9t for ding-account@gmane.org; Fri, 09 Dec 2005 17:24:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1Ekl2M-0002cJ-00; Fri, 09 Dec 2005 10:23:58 -0600 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1Ekl20-0002cB-00 for ding@lists.math.uh.edu; Fri, 09 Dec 2005 10:23:36 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1Ekl1x-0006dZ-4k for ding@lists.math.uh.edu; Fri, 09 Dec 2005 10:23:35 -0600 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net ([217.13.230.178] helo=yxa.extundo.com) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ekl1t-0007Xq-00 for ; Fri, 09 Dec 2005 17:23:29 +0100 Original-Received: from latte.josefsson.org (jas@yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.13.4/8.13.4/Debian-3) with ESMTP id jB9GNI95013142 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 9 Dec 2005 17:23:19 +0100 Original-To: Kevin Rodgers , rms@gnu.org OpenPGP: id=B565716F; url=http://josefsson.org/key.txt X-Hashcash: 1:21:051209:rms@gnu.org::T51UGj1CFbVzzmmm:0D/o X-Hashcash: 1:21:051209:ding@gnus.org::zX2HJ+/HsRSyLWkN:1FqE X-Hashcash: 1:21:051209:ihs_4664@yahoo.com::5fCSasfgHV1/DWdt:6C In-Reply-To: (Richard M. Stallman's message of "Sun, 04 Dec 2005 21:35:58 -0500") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on yxa-iv X-Virus-Scanned: ClamAV version 0.84, clamav-milter version 0.84e on yxa.extundo.com X-Virus-Status: Clean X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:61483 Archived-At: "Richard M. Stallman" writes: > Would you please DTRT about this, then ack? I believe no action is required, see below. Kevin Rodgers writes: > 1. Is it safe to suggest to this user to (setq imap-use-utf7 nil)? I believe it is safe, if used consistently. If you toggle the variable, existing groups will rename themselves. Of course, you'll loose non-ascii features. > 2. Should imap-utf7-decode work on this string with non-nil imap-use-utf7? > It contains only ASCII characters, but the "&" triggers the error: > > signal(error ("Unable to convert from Unicode")) > error("Unable to convert from Unicode") > utf7-u16-latin1-char-converter() > utf7-fragment-decode(207 210 t) > utf7-decode-internal(t) > utf7-decode("Public Folders/Business Units/SC WW Sales and > Marketing/Reporting/Commissions/2005 Commissions/2005 Adjustments/*2005 > Closed Adjustments/*closed*7.1.05 through 7.31.05/*closed*EPIC Tut > Systems Videotele &IBM- TMS320C6415TGLZ1" t) That isn't valid UTF-7 a'la IMAP, so I think the error is correct. Imap.el call utf7-decode in a condition-case, so in practice you shouldn't see the error. How does this cause any real problem?