From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79533 Path: news.gmane.org!not-for-mail From: Chunyu Wang Newsgroups: gmane.emacs.gnus.general Subject: Gnus nnimap doesn't decode Gmail's imap labels(folders) Date: Thu, 21 Jul 2011 16:49:16 +0800 Message-ID: <87tyagt3w3.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=gbk Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1311250806 16812 80.91.229.12 (21 Jul 2011 12:20:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 21 Jul 2011 12:20:06 +0000 (UTC) Cc: cymacs@gmail.com To: ding@gnus.org, larsi@gnus.org Original-X-From: ding-owner+M27828@lists.math.uh.edu Thu Jul 21 14:20:01 2011 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 1QjsET-0006N7-8s for ding-account@gmane.org; Thu, 21 Jul 2011 14:20:01 +0200 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 1QjsDT-0002xH-4p; Thu, 21 Jul 2011 07:18:59 -0500 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 1Qjowq-00020e-7A for ding@lists.math.uh.edu; Thu, 21 Jul 2011 03:49:36 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1Qjowo-0005Yr-Si for ding@lists.math.uh.edu; Thu, 21 Jul 2011 03:49:35 -0500 Original-Received: from mail-pv0-f172.google.com ([74.125.83.172]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1Qjowk-0006OP-4s; Thu, 21 Jul 2011 10:49:30 +0200 Original-Received: by pvh18 with SMTP id 18so1557454pvh.17 for ; Thu, 21 Jul 2011 01:49:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:cc:date:message-id:mime-version:content-type :content-transfer-encoding; bh=qWj4TsIC1uYw43Eh8x1ltI6O5j8TeXN5u/ZFK+VH7Yk=; b=of8/eY1JLmUNGwlVr1H9louAdYsRZgHEMd+/9lJ5jusr1ShVse+RSmIjBe3frJiRNK nS8DbR41IesehhSYEDqT5lxqwAxApP/f8gVPbRGfPwDRQ48PIPnQ2eUtClXHTCmQtnCi vjuWy2WC1ZX50kvYHHJ8hNgcQlszInj5r1KDM= Original-Received: by 10.68.36.198 with SMTP id s6mr5784pbj.51.1311238163440; Thu, 21 Jul 2011 01:49:23 -0700 (PDT) Original-Received: from NCCY-PC (hfi.hit.edu.cn [202.118.228.101]) by mx.google.com with ESMTPS id x1sm721599pbb.82.2011.07.21.01.49.20 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 21 Jul 2011 01:49:22 -0700 (PDT) X-Spam-Score: -3.0 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79533 My Gmail account's language setting is in Chinese, so all labels except INBOX are in Chinese. Chinese labels in Gmail's imap are encoded in modified UTF-7 as described RFC-2060 5.1.3. With the following gnus-select-method, I can read/get NEW mails in the INBOX, but all others folders(Gmail labels) do not work well. Gnus can't get in these nnimap 'groups'. (setq gnus-select-method '(nnimap "imap.gmail.com")) The Gnus *Group* buffer: ------------------------------------------ *: [Gmail]/&kc2JgQ- 0: Notes *: [Gmail]/&XfJT0ZCuTvY- *: [Gmail]/&YkBnCZCuTvY- *: [Gmail]/&g0l6Pw- 0: INBOX *: [Gmail] *: [Gmail]/&XfJSoGYfaAc- 1: nndraft:drafts ------------------------------------------- The whole buffer(or a single line) as a string can be decode into correct Chinese label with utf7-decode. =20 (utf7-decode "*: [Gmail]/&kc2JgQ-" t)=20 =3D=3D> "*: [Gmail]/=D6=D8=D2=AA" The decoded whole buffer: ------------------------------------------ *: [Gmail]/=D6=D8=D2=AA 0: Notes *: [Gmail]/=D2=D1=B7=A2=D3=CA=BC=FE *: [Gmail]/=CB=F9=D3=D0=D3=CA=BC=FE *: [Gmail]/=B2=DD=B8=E5 0: INBOX *: [Gmail] *: [Gmail]/=D2=D1=BC=D3=D0=C7=B1=EA 1: nndraft:drafts ------------------------------------------- If the lables are changed into ASCII in Gmail web interface. Gnus can read and access the corresponding group well.