[Tickets #11806] Activesync incorrect header encoding

bugs at horde.org bugs at horde.org
Mon Dec 3 18:03:37 UTC 2012


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

Ticket URL: http://bugs.horde.org/ticket/11806
------------------------------------------------------------------------------
  Ticket             | 11806
  Created By         | horde at albasoft.com
  Summary            | Activesync incorrect header encoding
  Queue              | Synchronization
  Version            | Git master
  Type               | Bug
  State              | Unconfirmed
  Priority           | 2. Medium
  Milestone          |
  Patch              | 1
  Owners             |
------------------------------------------------------------------------------


horde at albasoft.com (2012-12-03 18:03) wrote:

When I send a message from my device to a recipient containing  
iso-8859-1 chars, I get an email with no encoded message headers.
Sending to "José" <xx at xx.xx> (acute e) delivers a message with a  
header containing utf8 chars like:
   To: José <xx at xx.xx>
but it should be:
   To: =?utf-8?b?Sm9zw6k=?=  <xx at xx.xx>

I think there are some errors in Core/ActiveSync/Driver.php with  
charset handling. At line 1072:
    $h_array = $headers->toArray();
but changing it to
    $h_array = $headers->toArray(array('charset' => 'UTF-8'));
fixes the error and the message headers are correctly coded.
If this is correct, i guess this has to be fixed also in line 1183, in  
copy to sent folder:
$msg = $copy->toString(array('headers' =>  
$headers->toString(array('charset' => 'UTF-8'))));





More information about the bugs mailing list