Gnus development mailing list
 help / color / mirror / Atom feed
* Gnus nnimap doesn't decode Gmail's imap labels(folders)
@ 2011-07-21  8:49 Chunyu Wang
  2011-08-21  3:53 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Chunyu Wang @ 2011-07-21  8:49 UTC (permalink / raw)
  To: ding, larsi; +Cc: cymacs


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.




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-09-10 23:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-21  8:49 Gnus nnimap doesn't decode Gmail's imap labels(folders) Chunyu Wang
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

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).