[#7107] Bug in imp/lib/MIME/Contents.php
Summary Bug in imp/lib/MIME/Contents.php
Queue Horde Groupware Webmail Edition
Queue Version 1.1.1
Type Bug
State Resolved
Priority 1. Low
Owners
Requester tomi (dot) leppikangas (at) gmail (dot) com
Created 07/24/2008 (119 days ago)
Due
Updated 07/24/2008 (119 days ago)
Assigned
Resolved 07/24/2008 (119 days ago)
Attachments
Milestone
Patch Yes

History
07/24/2008 Jan Schneider Comment #3
State ⇒ Resolved
Reply to this comment
It doesn't really appear *again* because this is a completely 
different piece of code. But it's the same bug and the correct fix, 
thanks.
07/24/2008 CVS Commit Comment #2 Reply to this comment
07/24/2008 tomi (dot) leppikangas (at) gmail (dot) com Comment #1
Patch ⇒ 1
Milestone ⇒
Queue ⇒ Horde Groupware Webmail Edition
Summary ⇒ Bug in imp/lib/MIME/Contents.php
Type ⇒ Bug
Priority ⇒ 1. Low
State ⇒ Unconfirmed
Reply to this comment
Bug described in http://bugs.horde.org/ticket/6424 appears again in 
webmail edition 1.1.

Patch below fixed this.

diff -ru horde-webmail-1.1.1/imp/lib/MIME/Contents.php 
horde-test/imp/lib/MIME/Contents.php
--- horde-webmail-1.1.1/imp/lib/MIME/Contents.php        2008-06-14 
02:55:34.000000000 +0300
+++ horde-test/imp/lib/MIME/Contents.php        2008-07-24 14:03:21.000000000 +0300
@@ -764,7 +764,7 @@
              }
              $contents = $this->getBodyPart($id);
              if (($mime_part->getPrimaryType() == 'text') &&
-                ($mime_part->getCharset() == 'us-ascii') &&
+                (String::lower($mime_part->getCharset()) == 'us-ascii') &&
                  MIME::is8bit($contents)) {
                  $contents = String::convertCharset($contents, 'US-ASCII');
              }