Gnus development mailing list
 help / color / mirror / Atom feed
From: Chunyu Wang <cymacs@gmail.com>
To: ding@gnus.org, larsi@gnus.org
Cc: cymacs@gmail.com
Subject: Gnus nnimap doesn't decode Gmail's imap labels(folders)
Date: Thu, 21 Jul 2011 16:49:16 +0800	[thread overview]
Message-ID: <87tyagt3w3.fsf@gmail.com> (raw)


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.
 
  (utf7-decode "*: [Gmail]/&kc2JgQ-" t) 
  ==> "*: [Gmail]/重要"

The decoded whole buffer:
------------------------------------------
       *: [Gmail]/重要
       0: Notes
       *: [Gmail]/已发邮件
       *: [Gmail]/所有邮件
       *: [Gmail]/草稿
       0: INBOX
       *: [Gmail]
       *: [Gmail]/已加星标
       1: nndraft:drafts

-------------------------------------------



If the lables are changed into ASCII in Gmail web interface. Gnus can
read and access the corresponding group well.




             reply	other threads:[~2011-07-21  8:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-21  8:49 Chunyu Wang [this message]
2011-08-21  3:53 ` Lars Magne Ingebrigtsen
2011-08-21  6:52   ` Chunyu Wang
2011-09-10 22:56     ` Lars Magne Ingebrigtsen
2011-09-10 23:13       ` Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tyagt3w3.fsf@gmail.com \
    --to=cymacs@gmail.com \
    --cc=ding@gnus.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).