From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/69448 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: Patch: Support for non-ascii characters in imap group names Date: Sat, 20 Mar 2010 10:45:57 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87zl23dmiy.fsf@lifelogs.com> References: <7mljev50dc.fsf@kolon.stjernholm.org> <7m635qutf5.fsf@kolon.stjernholm.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1269099986 16296 80.91.229.12 (20 Mar 2010 15:46:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 20 Mar 2010 15:46:26 +0000 (UTC) Cc: ding@gnus.org To: Martin Stjernholm Original-X-From: ding-owner+M17843@lists.math.uh.edu Sat Mar 20 16:46:22 2010 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.69) (envelope-from ) id 1Nt0sW-0003SO-DJ for ding-account@gmane.org; Sat, 20 Mar 2010 16:46:20 +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 1Nt0sF-0008B2-21; Sat, 20 Mar 2010 10:46:03 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Nt0sD-0008Am-RV for ding@lists.math.uh.edu; Sat, 20 Mar 2010 10:46:01 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1Nt0sC-0002FX-6m for ding@lists.math.uh.edu; Sat, 20 Mar 2010 10:46:01 -0500 Original-Received: from blockstar.com ([208.100.47.114] helo=mail.blockstar.com) by quimby with esmtp (Exim 3.36 #1 (Debian)) id 1Nt1oG-0000wa-00 for ; Sat, 20 Mar 2010 17:46:00 +0100 Original-Received: from heechee (c-98-227-29-141.hsd1.il.comcast.net [98.227.29.141]) by mail.blockstar.com (Postfix) with ESMTP id 3E213A68632; Sat, 20 Mar 2010 10:46:02 -0500 (CDT) X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" In-Reply-To: <7m635qutf5.fsf@kolon.stjernholm.org> (Martin Stjernholm's message of "Sun, 21 Feb 2010 23:15:42 +0100") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.93 (gnu/linux) X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:69448 Archived-At: On Sun, 21 Feb 2010 23:15:42 +0100 Martin Stjernholm wrote: MS> [Sent this some time ago but I suspect it got caught in a spam queue, so MS> I'm trying again. I apologize if it's a duplicate.] Thank you, it was my fault for ignoring it. MS> Hello, this patch should fix the long-standing problem with non-ascii MS> characters in imap group names (see e.g. MS> http://thread.gmane.org/gmane.emacs.gnus.general/67087 and MS> http://thread.gmane.org/gmane.emacs.gnus.general/67209). I know you have Emacs papers. I don't know if you need Gnus papers as well (since you can contribute to Gnus through Emacs). So I'm comitting the patch but Reiner should comment; I hope it doesn't need to be reverted. You can always sign the Gnus papers as well to be certain. MS> It is done by making the nnimap back end support MS> `gnus-group-name-charset-group-alist' and MS> `gnus-group-name-charset-method-alist'. To allow non-ascii groups it's MS> therefore necessary to configure them to use a sufficiently expressive MS> coding system, e.g. UTF-8. The default value for MS> `gnus-group-name-charset-group-alist' accomplishes that. I agree this is a clumsy fix but don't want to reengineer the groups and the agent for this. I do think, however, that this could be a target for a more ambitious Gnus rewrite that uses the newer Emacs features added since version 20 or so :) I'm not sure why you need (nnimap-close-group): Call `imap-current-mailbox' instead of using the variable `imap-current-mailbox'. but left it in, assuming it was sensible. Gnus folk, please test this if you can. It may break other Gnus pieces that assume an unencoded group name, but the way it's done seems to be clean to me. Thanks Ted