From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61538 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: Wed, 14 Dec 2005 15:18:21 +0100 Message-ID: References: <20051213214638.60092.qmail@web51007.mail.yahoo.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1134570053 14691 80.91.229.2 (14 Dec 2005 14:20:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 14 Dec 2005 14:20:53 +0000 (UTC) Cc: ding@gnus.org, rms@gnu.org Original-X-From: ding-owner+m10070@lists.math.uh.edu Wed Dec 14 15:20:51 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EmXTU-0005sv-4b for ding-account@gmane.org; Wed, 14 Dec 2005 15:19:20 +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 1EmXTP-0005Td-00; Wed, 14 Dec 2005 08:19:15 -0600 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1EmXT1-0005TY-00 for ding@lists.math.uh.edu; Wed, 14 Dec 2005 08:18:51 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1EmXSy-0006z0-AK for ding@lists.math.uh.edu; Wed, 14 Dec 2005 08:18:51 -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 1EmXSx-0007BJ-00 for ; Wed, 14 Dec 2005 15:18:47 +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 jBEEISDI023973 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 14 Dec 2005 15:18:29 +0100 Original-To: Kevin Rodgers OpenPGP: id=B565716F; url=http://josefsson.org/key.txt X-Hashcash: 1:21:051214:rms@gnu.org::m+hfeRnDxfrQ8Yti:y6u X-Hashcash: 1:21:051214:ding@gnus.org::3YW1UWx5JoPrNLCF:3UIg X-Hashcash: 1:21:051214:ihs_4664@yahoo.com::unkHOEmIWi3dH+sL:AEF1 In-Reply-To: <20051213214638.60092.qmail@web51007.mail.yahoo.com> (Kevin Rodgers's message of "Tue, 13 Dec 2005 13:46:38 -0800 (PST)") 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:61538 Archived-At: Kevin Rodgers writes: > Simon Josefsson wrote: >> "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? > > The original problem is described here: > > http://lists.gnu.org/archive/html/help-gnu-emacs/2005-11/msg00727.html I see. It is just a warning, right? The problem is in the server, it send an invalid UTF-7 string. Gnus is supposed to ignore the group name, print that warning and continue, I'm not sure it can do more.