[imp] Proposed fix for http://bugs.horde.org/ticket/?id=4834 in IMP 4.1.3

Patrick Boutilier boutilpj at ednet.ns.ca
Wed Feb 21 16:32:14 PST 2007


http://bugs.horde.org/ticket/?id=4834

Horde: 3.1.3
IMP: 4.1.3
Turba: 2.1.3

I have tested this quick fix for bug 4834 in stable IMP. All my tests 
were positive and as far as I can tell the "encodeAddress" function in 
horde/lib/Horde/MIME.php is only used by IMP and MIMP. But we shall see 
if our users find any bugs with the fix over the next couple of days. :-)




--- horde/lib/Horde/MIME.php.orig       2006-08-17 10:27:43.000000000 -0300
+++ horde/lib/Horde/MIME.php    2007-02-21 19:52:12.000000000 -0400
@@ -262,6 +262,9 @@
              foreach ($addr_arr as $addr) {
                  // Check for groups.
                  if (!empty($addr->groupname)) {
+                    if (!empty($text)) {
+                        $text .= ',';
+                    }
                      $text .= MIME::encode($addr->groupname, $charset) 
. ': ' . MIME::encodeAddress($addr->addresses) . ';';
                      continue;
                  }


More information about the imp mailing list