<?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>Problem with appledouble Viewer</title> 
  <pubDate>Fri, 10 Apr 2026 14:48:33 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/6957</link> 
  <atom:link rel="self" type="application/rss+xml" title="Problem with appledouble Viewer" href="https://bugs.horde.org/ticket/6957/rss" /> 
  <description>Problem with appledouble Viewer</description> 
 
   
   
  <item> 
   <title>Hello, I received a message with 4 &#039;multipart/appledouble&#039; p</title> 
   <description>Hello, I received a message with 4 &#039;multipart/appledouble&#039; parts(&gt;2Mb aprox. each one). And this is my experience about it:



1.- When I open the message my horde session is closed, I use memcache for session container. I have follow the code and I see the &#039;appledouble&#039; Viewer has a &#039;new MIME_Contents()&#039; and a posterior &#039;$mc-&gt;buildMessage()&#039; which cause that each part(&gt;2Mb) is cached. OK, this is the cause of my closed session because in memcache the size limit per session is 1Mb, Is this right?



2.- I active the Horde Cache driver with local files, and now I can open the message and I see 4 cache files(&gt;2Mb) has been created, now I can see or download any of them.



3.- Now I go to the mailbox.php view and I continue seeing another messages, now I go back to see another time the message with the 4 &#039;multipart/appledouble&#039; parts but now(this second time) I can not view or download the parts!!! when I click the links to view or download the &#039;view.php&#039; page is empty.

    The unique difference between the source code(HTML) of the first time and the second is the value of &#039;mimeCache&#039;. This value changes every time I go back to the message.





This is correct?? And by other hand, Is right to store such large attachments in cache? It is better than to get directly the attachments from the IMAP Server?





 	

Greetings and thanks.



Sebastián Calero.</description> 
   <pubDate>Thu, 19 Jun 2008 15:22:32 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6957#t46675</link> 
  </item> 
   
  <item> 
   <title>A posible solution is this change in &#039;imp/lib/MIME/Viewer/ap</title> 
   <description>A posible solution is this change in &#039;imp/lib/MIME/Viewer/appledouble.php&#039;, function &#039;render()&#039;:



        /* Display the content of the file. */

        $part = $contents-&gt;getDecodedMIMEPart($this-&gt;mime_part-&gt;getRelativeMIMEId(2));

        if ($part) {

            $mime_message = &amp;MIME_Message::convertMIMEPart($part);

            $mc = new MIME_Contents($mime_message, array(&#039;download&#039; =&gt; &#039;download_attach&#039;, &#039;view&#039; =&gt; &#039;view_attach&#039;), array(&amp;$contents));

+           if (isset($contents-&gt;_sessionCacheID) &amp;&amp; !empty($contents-&gt;_sessionCacheID)) {

+               $mc-&gt;_sessionCacheID = $contents-&gt;_sessionCacheID; 

+           }

            $mc-&gt;buildMessage();

            $text .= &#039;&lt;!--a75c305b1c0a6022--&gt;&lt;table cellspacing=&quot;0&quot;&gt;&#039; . $mc-&gt;getMessage(true) . &#039;&lt;/table&gt;&#039;;

        }





This cause the &#039;multipart/appledouble&#039; parts are not cached and the attachments are downloaded directly from the IMAP server. It helps?



Greetings.





</description> 
   <pubDate>Thu, 19 Jun 2008 15:34:50 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6957#t46676</link> 
  </item> 
   
  <item> 
   <title>&gt; 1.- When I open the message my horde session is closed, I </title> 
   <description>&gt; 1.- When I open the message my horde session is closed, I use 

&gt; memcache for session container. I have follow the code and I see the 

&gt; &#039;appledouble&#039; Viewer has a &#039;new MIME_Contents()&#039; and a posterior 

&gt; &#039;$mc-&gt;buildMessage()&#039; which cause that each part(&gt;2Mb) is cached. OK, 

&gt; this is the cause of my closed session because in memcache the size 

&gt; limit per session is 1Mb, Is this right?



Wrong.  Sounds like you did not enable &#039;large_items&#039; support in horde/config/conf.xml.  You can also change this value in the memcache source.



&gt; This is correct?? And by other hand, Is right to store such large 

&gt; attachments in cache? It is better than to get directly the 

&gt; attachments from the IMAP Server?



This is a known limitation with Horde&#039;s MIME implementation.  See:

http://wiki.horde.org/Project/HordeMime?referrer=Projects#toc3



The short answer is - this data does not exist on the IMAP server, it is an &quot;embedded&quot; MIME Part.  Since we don&#039;t have a way to access the part without parsing the entire message again (and this may be difficult to do on a separate page), caching is the only way we can make these messages work.</description> 
   <pubDate>Thu, 03 Jul 2008 05:38:10 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6957#t47152</link> 
  </item> 
   
  <item> 
   <title>&gt; A posible solution is this change in 

&gt; &#039;imp/lib/MIME/Vie</title> 
   <description>&gt; A posible solution is this change in 

&gt; &#039;imp/lib/MIME/Viewer/appledouble.php&#039;, function &#039;render()&#039;:



No, this is not quite correct.



There is nothing wrong with the current way we view messages - it could just be made more resource friendly in certain instances.  But since nothing is broken in IMP 4, this ticket is no more than another reason to do the MIME rewrite and, as such, will be marked stalled.</description> 
   <pubDate>Thu, 03 Jul 2008 05:43:11 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6957#t47154</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; 1.- When I open the message my horde session is closed, I</title> 
   <description>&gt;&gt; 1.- When I open the message my horde session is closed, I use

&gt;&gt; memcache for session container. I have follow the code and I see the

&gt;&gt; &#039;appledouble&#039; Viewer has a &#039;new MIME_Contents()&#039; and a posterior

&gt;&gt; &#039;$mc-&gt;buildMessage()&#039; which cause that each part(&gt;2Mb) is cached. OK,

&gt;&gt; this is the cause of my closed session because in memcache the size

&gt;&gt; limit per session is 1Mb, Is this right?

&gt;

&gt; Wrong.  Sounds like you did not enable &#039;large_items&#039; support in 

&gt; horde/config/conf.xml.  You can also change this value in the 

&gt; memcache source.

&gt;



Yes, I enable &#039;large_items&#039;, this is my conf.php lines for memcache:



$conf[&#039;memcache&#039;][&#039;enabled&#039;] = true;

$conf[&#039;memcache&#039;][&#039;hostspec&#039;] = array(&#039;localhost&#039;);

$conf[&#039;memcache&#039;][&#039;port&#039;] = array(&#039;9000&#039;);

$conf[&#039;memcache&#039;][&#039;persistent&#039;] = true;

$conf[&#039;memcache&#039;][&#039;compression&#039;] = true;

$conf[&#039;memcache&#039;][&#039;c_threshold&#039;] = 0;

$conf[&#039;memcache&#039;][&#039;prefix&#039;] = &#039;cache&#039;;

$conf[&#039;memcache&#039;][&#039;large_items&#039;] = true;





&gt;&gt; This is correct?? And by other hand, Is right to store such large

&gt;&gt; attachments in cache? It is better than to get directly the

&gt;&gt; attachments from the IMAP Server?

&gt;

&gt; This is a known limitation with Horde&#039;s MIME implementation.  See:

&gt; http://wiki.horde.org/Project/HordeMime?referrer=Projects#toc3

&gt;

&gt; The short answer is - this data does not exist on the IMAP server, it 

&gt; is an &quot;embedded&quot; MIME Part.  Since we don&#039;t have a way to access the 

&gt; part without parsing the entire message again (and this may be 

&gt; difficult to do on a separate page), caching is the only way we can 

&gt; make these messages work.



Ok, but I see the following sentence at link you send me: &quot;Remove caching code from MIME_Contents&quot;. I think this is not the &#039;only way&#039; can make these messages work although it may be the most efficient. 

</description> 
   <pubDate>Thu, 03 Jul 2008 06:57:51 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6957#t47160</link> 
  </item> 
   
  <item> 
   <title>Sorry, but I think that something is wrong with IMP 4(4.2 - </title> 
   <description>Sorry, but I think that something is wrong with IMP 4(4.2 - webmail 1.1).



I have a message with 4 &#039;application/applefile&#039; parts, with 4 .PSD embedded files, and now I follow this steps to get the IMP error:



1.- I open the message and try to download a .PSD files. It&#039;s OK and I get the file.



2.- Go to &#039;mailbox.php&#039; or any other IMP page.



3.- Go back to the original message and reopen it, try now to download any of the .PSD files, do not get a blank page? I can not download any .PSD files now.



I have not been able to attach a mail sample because its size &gt;10 Mb, I imagine.



	

Greetings and thanks.



Sebastián Calero.</description> 
   <pubDate>Thu, 03 Jul 2008 07:34:09 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6957#t47163</link> 
  </item> 
   
  <item> 
   <title>Any response to my last coments??



Greetings and thanks.

</title> 
   <description>Any response to my last coments??



Greetings and thanks.



Sebastián Calero.</description> 
   <pubDate>Thu, 10 Jul 2008 07:00:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6957#t47432</link> 
  </item> 
   
  <item> 
   <title>&gt; Any response to my last coments??



No, nothing in additi</title> 
   <description>&gt; Any response to my last coments??



No, nothing in addition to what has already been previously posted.</description> 
   <pubDate>Tue, 15 Jul 2008 04:55:16 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6957#t47523</link> 
  </item> 
   
  <item> 
   <title>OK, I will not send more comments to this ticket, but I stil</title> 
   <description>OK, I will not send more comments to this ticket, but I still think there is a bug in appledouble viewer because &#039;mimeCache&#039; parameter changes in every request and the Parts of the message can not be obtained from the cache.



Greetings and thanks.



Sebastián Calero.</description> 
   <pubDate>Tue, 15 Jul 2008 06:31:30 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6957#t47534</link> 
  </item> 
   
  <item> 
   <title>Michael, is there anything specific here to do in the MIME r</title> 
   <description>Michael, is there anything specific here to do in the MIME rewrite, or can it be closed?</description> 
   <pubDate>Sun, 09 Nov 2008 03:34:50 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6957#t50544</link> 
  </item> 
   
  <item> 
   <title>Leave it open, if just so I can easily find to test when nee</title> 
   <description>Leave it open, if just so I can easily find to test when needed.</description> 
   <pubDate>Sun, 09 Nov 2008 07:53:43 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6957#t50574</link> 
  </item> 
   
  <item> 
   <title>Looking at this a bit more - there is nothing to do here abo</title> 
   <description>Looking at this a bit more - there is nothing to do here above/beyond the MIME/display rewrite.  So closing.</description> 
   <pubDate>Fri, 14 Nov 2008 20:41:18 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6957#t50753</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
