<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>$conf[&#039;mailformat&#039;][&#039;brokenrfc2231&#039;] doesnt work, bug in Part.php</title> 
  <pubDate>Fri, 10 Apr 2026 19:06:35 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/8346</link> 
  <atom:link rel="self" type="application/rss+xml" title="$conf[&#039;mailformat&#039;][&#039;brokenrfc2231&#039;] doesnt work, bug in Part.php" href="https://bugs.horde.org/ticket/8346/rss" /> 
  <description>$conf[&#039;mailformat&#039;][&#039;brokenrfc2231&#039;] doesnt work, bug in Part.php</description> 
 
   
   
  <item> 
   <title>The workaround for the option brokenrfc2231 doesnt work, for</title> 
   <description>The workaround for the option brokenrfc2231 doesnt work, for longer filenames at least (&gt;50?).



The check (strpos($encode_2231, &#039;*=&#039;) !== false)) will never return true, simply because    



$encode_2231 = MIME::encodeRFC2231($key, $value, $charset);



will not result in *= but in *0= *1= etc - an encoded string looks like this:



name*0=&quot;aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&quot;;

    name*1=&quot;aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&quot;;

    name*2=&quot;aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&quot;;

    name*3=&quot;aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.pdf&quot;



there is no name*= for longer filenames. Only for shorter



Fix:



replace if with



if (!empty($GLOBALS[&#039;conf&#039;][&#039;mailformat&#039;][&#039;brokenrfc2231&#039;]) &amp;&amp;

                ((strpos($encode_2231, &#039;*=&#039;) !== false) || (strpos($encode_2231, &#039;*0=&#039;) !== false))) {

                $ctype .= &#039;; &#039; . $key . &#039;=&quot;&#039; . MIME::encode($value, $charset) . &#039;&quot;&#039;;

            }



in both places</description> 
   <pubDate>Mon, 15 Jun 2009 08:54:11 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8346#t54571</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

http://cvs.h</title> 
   <description>Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/framework/MIME/MIME/Attic/Part.php?rt=horde&amp;r1=1.177.4.26&amp;r2=1.177.4.27&amp;ty=u</description> 
   <pubDate>Wed, 17 Jun 2009 19:49:16 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8346#t54626</link> 
  </item> 
   
  <item> 
   <title>Fixed in FW_3.  This was fixed in Horde 4 previously due to </title> 
   <description>Fixed in FW_3.  This was fixed in Horde 4 previously due to the MIME rewrite.</description> 
   <pubDate>Wed, 17 Jun 2009 19:49:58 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8346#t54627</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
