<<< Date Index >>>     <<< Thread Index >>>

Re: [Mutt] #3284: body cache depends on $charset



#3284: body cache depends on $charset
-------------------------+--------------------------------------------------
  Reporter:  pdmef       |       Owner:  pdmef 
      Type:  defect      |      Status:  new   
  Priority:  minor       |   Milestone:  1.6   
 Component:  body cache  |     Version:  1.5.20
Resolution:              |    Keywords:        
-------------------------+--------------------------------------------------

Comment(by pdmef):

 A proposed fix is here:
 http://bitbucket.org/pdmef/muttfixesmq/src/tip/ticket-3284

 Unfortunately, hcache suffers the same problem. The problem is: Unicode
 folder names in IMAP are UTF-7 encoded. Mutt decodes that to UTF-8 and
 does charset conversion to $charset. That path is then displayed to the
 user and used for hcache/bache paths which thus depend on $charset. E.g.
 gmail used "[Google Mail]/Entwürfe" (German u umlaut, likely this is
 "[Google Mail]/Drafts" or the like in the english version). With a UTF-8
 locale, the umlaut is encoded as 0xC3 0xBC, but with a latin1 charset as
 0xFC. If the user switches locales, he ends up with two different bcaches
 and two different hcaches.

 The proposed fix uses URL-like encoding using '+' instead of '%'. Thus,
 the above folder is always 'Entw+C3+BCrfe' on disk.

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/3284#comment:2>
Mutt <http://www.mutt.org/>
The Mutt mail user agent