Summary | Activesync charset converting error |
Queue | Synchronization |
Queue Version | Git master |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | mrubinsk (at) horde (dot) org |
Requester | horde (at) albasoft (dot) com |
Created | 11/22/2012 (4596 days ago) |
Due | |
Updated | 12/03/2012 (4585 days ago) |
Assigned | 12/02/2012 (4586 days ago) |
Resolved | 12/03/2012 (4585 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | Yes |
State ⇒ Resolved
commit ea31f9fb010d093c07b00c39f85533293f792cea
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date: Mon Dec 3 10:20:43 2012 -0500
Bug: 11745Remove duplicate, erroneous assignment from bad merge..../lib/Horde/ActiveSync/Imap/Adapter.php | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
http://git.horde.org/horde-git/-/commit/ea31f9fb010d093c07b00c39f85533293f792cea
conversions are in the other conditional clauses that are mutually
exclusive.
Adapter.php, lines 920 and 923.
I think 923 should not be there. Line 920 already makes a correct
asignment to 'body'.
Priority ⇒ 1. Low
State ⇒ Feedback
Looking into the code, I've found a line which undoes the previous
conversion.
conversions are in the other conditional clauses that are mutually
exclusive.
Assigned to Michael Rubinsky
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Activesync charset converting error
Queue ⇒ Synchronization
Milestone ⇒
Patch ⇒ Yes
State ⇒ Unconfirmed
Looking into the code, I've found a line which undoes the previous conversion.
Deleting that line solves the problem.
--- ActiveSync/Imap/Adapter.php.ori 2012-11-22 16:13:10.306357672 +0100
+++ ActiveSync/Imap/Adapter.php 2012-11-22 16:12:50.978606153 +0100
@@ -917,7 +917,6 @@
'body' =>
Horde_String::convertCharset($message_body_data['plain']['body'],
$message_body_data['plain']['charset'], 'UTF-8'),
'estimated_size' =>
$message_body_data['plain']['size'],
'truncated' =>
$message_body_data['plain']['truncated'],
- 'body' => $message_body_data['plain']['body']
);
} else {
$airsync_body->type =
Horde_ActiveSync::BODYPREF_TYPE_HTML;