[Tickets #7730] Tickets created by mail are not correctly encoded

bugs at horde.org bugs at horde.org
Thu Nov 27 17:24:12 UTC 2008


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

Ticket URL: http://bugs.horde.org/ticket/7730
------------------------------------------------------------------------------
  Ticket             | 7730
  Created By         | thomas at gelf.net
  Summary            | Tickets created by mail are not correctly encoded
  Queue              | Whups
  Version            | 1.0
  Type               | Bug
  State              | Unconfirmed
  Priority           | 2. Medium
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


thomas at gelf.net (2008-11-27 12:24) wrote:

Whups_Mail::processMail() is getting the mail body for comments by  
_buildComment(). This function doesn't seem to care about mail  
encoding - replacing
> $comment .= $part->transferDecode();
with
> $comment .= String::convertCharset($part->transferDecode(),  
> $part->getCharset());
in Whups_Mail::_buildComment() fixes this for me. My system seems to  
be correctly configured, one reason for the fact that it works on  
other systems may be that today still most (European) systems out  
there are running their cron jobs as ISO8859 - and most mails have  
this very same encoding.

Best regards,
Thomas Gelf

NB: Sorry for not attaching a unified diff for this one-line fix - I  
still need to clean up my code, remove debugging output etc...





More information about the bugs mailing list