[Tickets #9020] Re: Subject charset problem

bugs at horde.org bugs at horde.org
Sat May 15 17:24:09 UTC 2010


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/9020
------------------------------------------------------------------------------
  Ticket             | 9020
  Updated By         | george at polarismail.com
  Summary            | Subject charset problem
  Queue              | IMP
  Version            | 4.3.7
  Type               | Bug
  State              | Not A Bug
  Priority           | 2. Medium
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


george at polarismail.com (2010-05-15 13:24) wrote:

As it turns out, the issue was only half fixed - not sure why. Some  
messages were now showing fine while others still had question marks.

I started looking and finally traced it down to: imp/lib/IMAP/MessageCache.php

where the function retrieve that gets the subject ( and other header  
pieces ) says... :
                     // There should not be any 8bit characters here.  If there
                     // is, we either need to convert from the default charset
                     // or replace with question marks.


The line that verifies if I have a default charset is this:
if (!empty($GLOBALS['mime_headers']['default_charset'])) {

but my default_charset was empty even though it was setup in  
imp/config/prefs.php - not sure why. This is a stock installation of  
the latest Horde Webmail Groupware edition.

I simply added above that line, the following:
$GLOBALS['mime_headers']['default_charset']="US-ASCII";

and now finally all the subjects are showing fine.

The two issues were:

#1. UTF8 encoding in the subject line
#2. missing default charset in IMP








More information about the bugs mailing list