<?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>Every message displays as empty</title> 
  <pubDate>Fri, 10 Apr 2026 18:48:28 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/9644</link> 
  <atom:link rel="self" type="application/rss+xml" title="Every message displays as empty" href="https://bugs.horde.org/ticket/9644/rss" /> 
  <description>Every message displays as empty</description> 
 
   
   
  <item> 
   <title>In IMP 5 alpha 1 I get a perfect mailbox view, but when I cl</title> 
   <description>In IMP 5 alpha 1 I get a perfect mailbox view, but when I click any message it opens with [No Subject] and in the body there is only an &quot;Unnamed message part&quot;, and then &quot;This part is empty&quot;. Clicking the Unnamed part gives me an empty window. Enabling debug and debug_raw in backends.php while trying to see a a very simple test message (just one text part) yelds the output that I include at the end of this ticket (it is long and I XXXed out my email address).

If you want me to attach logs, packet captures (I am using SSL on the web side but not on the IMAP side), screenshot, configs, etc. just ask.

------------------------------
(1299688102.5800) S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN] Dovecot ready.
(1299688102.6300) C: [SASL-IR AUTHENTICATE Command - username: bergonz]
(1299688102.6400) S: 1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UN
SELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS] Logged in
(1299688102.6400) C: 2 SELECT INBOX
(1299688102.6800) S: * FLAGS (\Answered \Flagged \Deleted \Seen \Draft unknown-2 unknown-3 $MDNSent $Forwarded Junk NonJunk $label1 $has_cal)
(1299688102.6800) S: * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft unknown-2 unknown-3 $MDNSent $Forwarded Junk NonJunk $label1 $has_cal \*)]
 Flags permitted.
(1299688102.6800) S: * 702 EXISTS
(1299688102.6800) S: * 0 RECENT
(1299688102.6800) S: * OK [UNSEEN 2] First unseen.
(1299688102.6800) S: * OK [UIDVALIDITY 1221554981] UIDs valid
(1299688102.6800) S: * OK [UIDNEXT 368331] Predicted next UID
(1299688102.6800) S: * OK [HIGHESTMODSEQ 49797] Highest
(1299688102.6800) S: 2 OK [READ-WRITE] Select completed.
(1299688102.6900) C: 3 UID SORT RETURN (ALL COUNT) (ARRIVAL) US-ASCII ALL
(1299688102.7400) S: * ESEARCH (TAG &quot;3&quot;) UID ALL 367272,367274,367294,367301,367307:367313,367315:367317,367319:367321,367323,367325:367330,367332:367335,3673
37:367338,367340:367346,367348:367353,367355:367356,367358:367362,367365:367370,367372,367374:367384,367386:367388,367390:367392,367394,367396:367399,367402,3
67423:367424,367426:367428,367430:367433,367436:367454,367457:367459,367461:367466,367468:367472,367474:367483,367485:367494,367496,367498:367509,367511,36751
3,367515:367519,367522:367526,367529,367531,367533:367534,367536:367537,367539:367544,367547:367548,367550,367572:367573,367575:367582,367586:367612,367614:36
7617,367626:367627,367629:367635,367637:367639,367641:367649,367654:367657,367659,367661:367663,367665,367667:367681,367685:367688,367690:367692,367700,367708
,367710:367716,367718:367738,367740:367741,367743:367744,367746,367748,367750:367755,367757:367772,367775:367777,367779,367781:367787,367790:367793,367796:367
804,367806:367809,367811,367814:367821,367823:367826,367829:367835,367857:367859,367865,367868:367869,367918,367920:367925,367928,367930,367933:367934,367952:
367954,367956:367958,367960:367968,367970:367976,367979,367982:367987,367991,367993:368003,368005:368008,368010:368016,368018:368032,368034,368037:368045,3680
47,368049,368051:368056,368058:368065,368085:368089,368091:368094,368096:368103,368105,368107:368110,368113,368115:368118,368120,368122:368123,368126,368129:3
68130,368133:368138,368140:368143,368145:368152,368154:368156,368158,368160,368162:368165,368167,368169,368172:368179,368181:368183,368185:368186,368188,36819
2,368194:368196,368200:368330 COUNT 702
(1299688102.7500) S: 3 OK Sort completed (0.007 secs).
(1299688102.8300) C: 4 UID FETCH 368326 (BODYSTRUCTURE)
(1299688102.8600) S: * 698 FETCH (UID 368326 BODYSTRUCTURE (&quot;text&quot; &quot;plain&quot; (&quot;charset&quot; &quot;ISO-8859-1&quot; &quot;format&quot; &quot;flowed&quot;) NIL NIL &quot;7bit&quot; 200 5 NIL NIL NIL NIL))
(1299688102.8700) S: 4 OK Fetch completed.
(1299688102.8700) C: 5 UID FETCH 368326 (FLAGS)
(1299688102.9000) S: * 698 FETCH (UID 368326 FLAGS (\Seen))
(1299688102.9000) S: 5 OK Fetch completed.
(1299688102.9100) C: 6 UID FETCH 368326 (ENVELOPE BODY[HEADER])
(1299688102.9500) S: * 698 FETCH (UID 368326 ENVELOPE (&quot;Wed, 09 Mar 2011 17:15:33 +0100&quot; &quot;Test message&quot; ((&quot;Michele Bergonzoni&quot; NIL &quot;bergonz&quot; &quot;labs.it&quot;)) ((&quot;Michele Bergonzoni&quot; NIL &quot;bergonz&quot; &quot;labs.it&quot;)) ((&quot;Michele Bergonzoni&quot; NIL &quot;bergonz&quot; &quot;labs.it&quot;)) ((NIL NIL &quot;bergonz&quot; &quot;labs.it&quot;)) NIL NIL NIL &quot;&lt;4D77A7A5.5080701@labs.it&gt;&quot;) BODY[HEADER] {951}
(1299688102.9500) S: Received: (qmail 24961 invoked by alias); 9 Mar 2011 16:15:34 -0000
Delivered-To: labs-XXX
Received: (qmail 24957 invoked by uid 1058); 9 Mar 2011 16:15:34 -0000
Received: from 1.0.14.107 by mason (envelope-from &lt;XXX&gt;, uid 1050) with qmail-scanner-2.01-rej 
 (clamdscan: 0.91.2/4456. uvscan: v5.1.00/v5132. spamassassin: 3.1.8.  
 Clear:RC:1(1.0.14.107):. 
 Processed in 0.019371 secs); 09 Mar 2011 16:15:34 -0000
Received: from unknown (HELO ?10.0.14.107?) (10.0.14.107)
  by mason.internal.labs.it with SMTP; 9 Mar 2011 16:15:34 -0000
Message-ID: &lt;4D77A7A5.5080701@labs.it&gt;
Date: Wed, 09 Mar 2011 17:15:33 +0100
From: Michele Bergonzoni &lt;XXX&gt;
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8
MIME-Version: 1.0
To: XXX
Subject: Test message
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
(1299688102.9500) S: )
(1299688102.9500) S: 6 OK Fetch completed.
(1299688103.3000) C: 7 UID FETCH 368326 (BODY.PEEK[1])
(1299688103.3300) S: * 698 FETCH (UID 368326 BODY[1] {200}
(1299688103.3300) S: This is a test.
-- 
Ing. Michele Bergonzoni - Laboratori Guglielmo Marconi S.p.a.
Phone:+39-051-4392826 Fax:+39-051-6153683 e-mail: XXX
alt.advanced.networks.design.configure.operate
(1299688103.3400) S: )
(1299688103.3400) S: 7 OK Fetch completed.
(1299688103.6500) C: 8 SEARCH RETURN (COUNT) UNSEEN
(1299688103.6800) S: * ESEARCH (TAG &quot;8&quot;) COUNT 335
(1299688103.6900) S: 8 OK Search completed (0.000 secs).
(1299688104.0900) C: 9 LOGOUT
(1299688104.1200) S: * BYE Logging out
(1299688104.1200) S: 9 OK Logout completed.
------------------------------


</description> 
   <pubDate>Wed, 09 Mar 2011 16:59:32 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9644#t62168</link> 
  </item> 
   
  <item> 
   <title>More details: if I click &quot;Message Source&quot;, the source is OK </title> 
   <description>More details: if I click &quot;Message Source&quot;, the source is OK (has all the body, parts, base64 if there are attachments), so it doesn&#039;t seem to be an imap issue. If I open a message with attachments, it shows me an empty message with [No Subject] and the attachments. If I open an attachment I get an empty file with the correct name and of the correct mime type.
</description> 
   <pubDate>Wed, 09 Mar 2011 17:14:45 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9644#t62170</link> 
  </item> 
   
  <item> 
   <title>&gt; More details: if I click &quot;Message Source&quot;, the source is O</title> 
   <description>&gt; More details: if I click &quot;Message Source&quot;, the source is OK (has all 
&gt; the body, parts, base64 if there are attachments), so it doesn&#039;t seem 
&gt; to be an imap issue. If I open a message with attachments, it shows 
&gt; me an empty message with [No Subject] and the attachments. If I open 
&gt; an attachment I get an empty file with the correct name and of the 
&gt; correct mime type.
&gt;
I had the same issue. It was related to the PHP version. After upgrade everything worked fine. Which version are you using?</description> 
   <pubDate>Thu, 10 Mar 2011 09:22:54 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9644#t62185</link> 
  </item> 
   
  <item> 
   <title>I have:

PHP 5.2.6-1+lenny9 with Suhosin-Patch 0.9.6.2 (cl</title> 
   <description>I have:

PHP 5.2.6-1+lenny9 with Suhosin-Patch 0.9.6.2 (cli) (built: Aug  4 2010 03:25:57)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

I will try to change machine (or dist-upgrade) if I can. The requirement in the relnotes is PHP 5.2.0 or above, it may be easier to change the relnotes...
</description> 
   <pubDate>Thu, 10 Mar 2011 10:30:53 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9644#t62187</link> 
  </item> 
   
  <item> 
   <title>
&gt; PHP 5.2.6-1+lenny9 with Suhosin-Patch 0.9.6.2 (cli) (bui</title> 
   <description>
&gt; PHP 5.2.6-1+lenny9 with Suhosin-Patch 0.9.6.2 (cli) (built: Aug  4 
&gt; 2010 03:25:57)

&gt; I will try to change machine (or dist-upgrade) if I can. The 
&gt; requirement in the relnotes is PHP 5.2.0 or above, it may be easier 
&gt; to change the relnotes...

IMP works fine with PHP 5.2.  It may just be your particular installation of PHP that is broken.
</description> 
   <pubDate>Thu, 10 Mar 2011 19:11:20 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9644#t62207</link> 
  </item> 
   
  <item> 
   <title>This PHP installation is currently running horde 3.3.8 + imp</title> 
   <description>This PHP installation is currently running horde 3.3.8 + imp 4.3.7 + kronolith 2.3.4 with no issues. Of course it is possible that it is botched in some subtle way: in this case I would really like to understand where the problem is.

I set the loglevel to debug and when I open a message (in DIMP, where the issue is the same) and I append the output below, but it seems pretty much normal noise to me. Maybe someone can suggest good spots where to add print/debug statements: following the flow in the software is not easy for me.

Mar 11 09:06:33 cecere HORDE: HORDE Horde_Registry: retrieved app with cache ID horde_registry|app|1299667947|a3e9df9e0233273bfceda6ec6abc9689 [pid 633 on line 1611 of &quot;/usr/share/php/Horde/Registry.php&quot;]
Mar 11 09:06:33 cecere HORDE: HORDE [imp] Load config file (conf.php; app: imp) [pid 633 on line 785 of &quot;/usr/share/php/Horde.php&quot;]
Mar 11 09:06:33 cecere HORDE: HORDE [imp] SQL  (0.0057s)  #012#011SELECT * FROM horde_histories WHERE object_uid =#012#011  &#039;imp.bergonz.&lt;20110310191122.Horde.bBf6Rhha3zhNeSJa7ioDUVA@bugs.horde.#012#011  org&gt;&#039; [pid 633 on line 773 of &quot;/usr/share/php/Horde/Db/Adapter/Base.php&quot;]
Mar 11 09:06:33 cecere HORDE: HORDE [imp] Load config file (mime_drivers.php; app: horde) [pid 633 on line 785 of &quot;/usr/share/php/Horde.php&quot;]
Mar 11 09:06:33 cecere HORDE: HORDE [imp] Load config file (mime_drivers.php; app: imp) [pid 633 on line 785 of &quot;/usr/share/php/Horde.php&quot;]
Mar 11 09:06:33 cecere HORDE: HORDE [imp] SQL  (0.0055s)  #012#011SELECT alarm_id, alarm_uid, alarm_start, alarm_end, alarm_methods,#012#011  alarm_params, alarm_title, alarm_text, alarm_snooze, alarm_internal#012#011  FROM horde_alarms WHERE alarm_dismissed = 0 AND ((alarm_snooze IS NULL#012#011  AND alarm_start &lt;= &#039;2011-03-11T08:06:33&#039;) OR alarm_snooze &lt;=#012#011  &#039;2011-03-11T08:06:33&#039;) AND (alarm_end IS NULL OR alarm_end &gt;=#012#011  &#039;2011-03-11T08:06:33&#039;) AND (alarm_uid IS NULL OR alarm_uid = &#039;&#039; OR#012#011  alarm_uid = &#039;bergonz&#039;) ORDER BY alarm_start, alarm_end [pid 633 on line 773 of &quot;/usr/share/php/Horde/Db/Adapter/Base.php&quot;]
Mar 11 09:06:33 cecere HORDE: HORDE [imp] Max memory usage: 11010048 bytes [pid 633 on line 462 of &quot;/usr/share/php/Horde/Registry.php&quot;]


</description> 
   <pubDate>Fri, 11 Mar 2011 08:22:34 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9644#t62221</link> 
  </item> 
   
  <item> 
   <title>I modified /usr/share/php/Horde/Imap/Client/Base.php at line</title> 
   <description>I modified /usr/share/php/Horde/Imap/Client/Base.php at line 1960 with some print_r in this way:

 print_r($this);
             $ret = $this-&gt;_fetch($query, $ret, $options);
 print_r($ret);
 return $ret;

The result is as follows (password overwritten by me). The LOGIN FAILED is not confirmed by imapdebug, where login is OK and the part is retrieved.

Hope this helps somehow...

Horde_Imap_Client_Socket Object
(
    [_tag:protected] =&gt; 2
    [_stream:protected] =&gt; Resource id #131
    [cache] =&gt; 
    [cacheFields] =&gt; Array
        (
            [9] =&gt; HICenv
            [10] =&gt; HICflags
            [8] =&gt; HIChdrs
            [11] =&gt; HICdate
            [12] =&gt; HICsize
            [1] =&gt; HICstruct
        )

    [changed] =&gt; 1
    [_params:protected] =&gt; Array
        (
            [encryptKey] =&gt; Array
                (
                    [0] =&gt; IMP_Imap
                    [1] =&gt; getEncryptKey
                )

            [hostspec] =&gt; mason
            [log] =&gt; Array
                (
                    [0] =&gt; IMP_Imap
                    [1] =&gt; logError
                )

            [port] =&gt; 143
            [secure] =&gt; 
            [timeout] =&gt; 30
            [debug_literal] =&gt; 1
            [debug] =&gt; /tmp/imapdebug.txt
            [password] =&gt; &lt;I OVERWROTE SOME BINARY GARBAGE&gt;
            [statuscache] =&gt; 1
            [username] =&gt; bergonz
            [cache] =&gt; Array
                (
                    [fields] =&gt; Array
                        (
                        )

                )

            [_passencrypt] =&gt; 1
        )

    [_isAuthenticated:protected] =&gt; 1
    [_isSecure:protected] =&gt; 
    [_selected:protected] =&gt; INBOX
    [_mode:protected] =&gt; 1
    [_init:protected] =&gt; Array
        (
            [enabled] =&gt; Array
                (
                )

            [namespace] =&gt; Array
                (
                    [40cd750bba9870f18aada2478b24840a] =&gt; Array
                        (
                            [INBOX.] =&gt; Array
                                (
                                    [name] =&gt; INBOX.
                                    [delimiter] =&gt; .
                                    [type] =&gt; 1
                                    [hidden] =&gt; 
                                )

                            [shared.] =&gt; Array
                                (
                                    [name] =&gt; shared.
                                    [delimiter] =&gt; .
                                    [type] =&gt; 3
                                    [hidden] =&gt; 
                                )

                        )

                )

            [s_charset] =&gt; Array
                (
                )

            [capability] =&gt; Array
                (
                    [IMAP4REV1] =&gt; 1
                    [LITERAL+] =&gt; 1
                    [SASL-IR] =&gt; 1
                    [LOGIN-REFERRALS] =&gt; 1
                    [ID] =&gt; 1
                    [ENABLE] =&gt; 1
                    [IDLE] =&gt; 1
                    [STARTTLS] =&gt; 1
                    [AUTH] =&gt; Array
                        (
                            [0] =&gt; PLAIN
                        )

                    [SORT] =&gt; Array
                        (
                            [0] =&gt; DISPLAY
                        )

                    [THREAD] =&gt; Array
                        (
                            [0] =&gt; REFERENCES
                            [1] =&gt; REFS
                        )

                    [MULTIAPPEND] =&gt; 1
                    [UNSELECT] =&gt; 1
                    [CHILDREN] =&gt; 1
                    [NAMESPACE] =&gt; 1
                    [UIDPLUS] =&gt; 1
                    [LIST-EXTENDED] =&gt; 1
                    [I18NLEVEL] =&gt; Array
                        (
                            [0] =&gt; 1
                        )

                    [CONDSTORE] =&gt; 1
                    [QRESYNC] =&gt; 1
                    [ESEARCH] =&gt; 1
                    [ESORT] =&gt; 1
                    [SEARCHRES] =&gt; 1
                    [WITHIN] =&gt; 1
                    [CONTEXT] =&gt; Array
                        (
                            [0] =&gt; SEARCH
                        )

                    [LIST-STATUS] =&gt; 1
                )

            [imapproxy] =&gt; 
            [authmethod] =&gt; PLAIN
        )

    [_debug:protected] =&gt; Resource id #125
    [_temp:protected] =&gt; Array
        (
            [no_cap] =&gt; 1
            [preauth] =&gt; 
            [parsestatuserr] =&gt; 
            [token] =&gt; 
            [loginerr] =&gt; LOGIN_AUTHENTICATIONFAILED
            [referral] =&gt; 
            [fetchresp] =&gt; Array
                (
                    [seq] =&gt; Array
                        (
                        )

                    [uid] =&gt; Array
                        (
                        )

                )

            [mailbox] =&gt; Array
                (
                    [name] =&gt; INBOX
                    [flags] =&gt; Array
                        (
                            [0] =&gt; \answered
                            [1] =&gt; \flagged
                            [2] =&gt; \deleted
                            [3] =&gt; \seen
                            [4] =&gt; \draft
                            [5] =&gt; unknown-2
                            [6] =&gt; unknown-3
                            [7] =&gt; $mdnsent
                            [8] =&gt; $forwarded
                            [9] =&gt; junk
                            [10] =&gt; nonjunk
                            [11] =&gt; $label1
                            [12] =&gt; $has_cal
                        )

                    [permflags] =&gt; Array
                        (
                        )

                    [messages] =&gt; 871
                    [recent] =&gt; 0
                    [firstunseen] =&gt; 2
                    [uidvalidity] =&gt; 1221554981
                    [uidnext] =&gt; 368584
                    [highestmodseq] =&gt; 50140
                )

            [literal8] =&gt; Array
                (
                )

        )

    [_utils:protected] =&gt; Horde_Imap_Client_Utils Object
        (
        )

)
Array
(
    [368578] =&gt; Horde_Imap_Client_Data_Fetch Object
        (
            [_data:protected] =&gt; Array
                (
                    [14] =&gt; 866
                    [13] =&gt; 368578
                    [1] =&gt; Horde_Mime_Part Object
                        (
                            [_type:protected] =&gt; multipart
                            [_subtype:protected] =&gt; related
                            [_contents:protected] =&gt; 
                            [_transferEncoding:protected] =&gt; binary
                            [_language:protected] =&gt; Array
                                (
                                    [0] =&gt; NIL
                                )

                            [_description:protected] =&gt; 
                            [_disposition:protected] =&gt; 
                            [_dispParams:protected] =&gt; Array
                                (
                                )

                            [_contentTypeParams:protected] =&gt; Array
                                (
                                    [boundary] =&gt; 20cf3054aa51dd7ecf049e31cd51
                                )

                            [_parts:protected] =&gt; Array
                                (
                                    [0] =&gt; Horde_Mime_Part Object
                                        (
                                            [_type:protected] =&gt; multipart
                                            [_subtype:protected] =&gt; alternative
                                            [_contents:protected] =&gt; 
                                            [_transferEncoding:protected] =&gt; binary
                                            [_language:protected] =&gt; Array
                                                (
                                                    [0] =&gt; NIL
                                                )

                                            [_description:protected] =&gt; 
                                            [_disposition:protected] =&gt; 
                                            [_dispParams:protected] =&gt; Array
                                                (
                                                )

                                            [_contentTypeParams:protected] =&gt; Array
                                                (
                                                    [boundary] =&gt; 20cf3054aa51dd7ec9049e31cd50
                                                )

                                            [_parts:protected] =&gt; Array
                                                (
                                                    [0] =&gt; Horde_Mime_Part Object
                                                        (
                                                            [_type:protected] =&gt; text
                                                            [_subtype:protected] =&gt; plain
                                                            [_contents:protected] =&gt; 
                                                            [_transferEncoding:protected] =&gt; 7bit
                                                            [_language:protected] =&gt; Array
                                                                (
                                                                    [0] =&gt; NIL
                                                                )

                                                            [_description:protected] =&gt; 
                                                            [_disposition:protected] =&gt; 
                                                            [_dispParams:protected] =&gt; Array
                                                                (
                                                                    [size] =&gt; 896
                                                                )

                                                            [_contentTypeParams:protected] =&gt; Array
                                                                (
                                                                    [charset] =&gt; ISO-8859-1
                                                                )

                                                            [_parts:protected] =&gt; Array
                                                                (
                                                                )

                                                            [_mimeid:protected] =&gt; 1.1
                                                            [_eol:protected] =&gt; 

                                                            [_temp:protected] =&gt; Array
                                                                (
                                                                )

                                                            [_metadata:protected] =&gt; Array
                                                                (
                                                                )

                                                            [_boundary:protected] =&gt; 
                                                            [_bytes:protected] =&gt; 896
                                                            [_contentid:protected] =&gt; 
                                                            [_reindex:protected] =&gt; 
                                                            [_basepart:protected] =&gt; 
                                                            [_hdrCharset:protected] =&gt; 
                                                        )

                                                    [1] =&gt; Horde_Mime_Part Object
                                                        (
                                                            [_type:protected] =&gt; text
                                                            [_subtype:protected] =&gt; html
                                                            [_contents:protected] =&gt; 
                                                            [_transferEncoding:protected] =&gt; quoted-printable
                                                            [_language:protected] =&gt; Array
                                                                (
                                                                    [0] =&gt; NIL
                                                                )

                                                            [_description:protected] =&gt; 
                                                            [_disposition:protected] =&gt; 
                                                            [_dispParams:protected] =&gt; Array
                                                                (
                                                                    [size] =&gt; 2473
                                                                )

                                                            [_contentTypeParams:protected] =&gt; Array
                                                                (
                                                                    [charset] =&gt; ISO-8859-1
                                                                )

                                                            [_parts:protected] =&gt; Array
                                                                (
                                                                )

                                                            [_mimeid:protected] =&gt; 1.2
                                                            [_eol:protected] =&gt; 

                                                            [_temp:protected] =&gt; Array
                                                                (
                                                                )

                                                            [_metadata:protected] =&gt; Array
                                                                (
                                                                )

                                                            [_boundary:protected] =&gt; 
                                                            [_bytes:protected] =&gt; 2473
                                                            [_contentid:protected] =&gt; 
                                                            [_reindex:protected] =&gt; 
                                                            [_basepart:protected] =&gt; 
                                                            [_hdrCharset:protected] =&gt; 
                                                        )

                                                )

                                            [_mimeid:protected] =&gt; 1
                                            [_eol:protected] =&gt; 

                                            [_temp:protected] =&gt; Array
                                                (
                                                )

                                            [_metadata:protected] =&gt; Array
                                                (
                                                )

                                            [_boundary:protected] =&gt; =_R9V7JcLbMLtNefFEYb9QWIA
                                            [_bytes:protected] =&gt; 
                                            [_contentid:protected] =&gt; 
                                            [_reindex:protected] =&gt; 
                                            [_basepart:protected] =&gt; 
                                            [_hdrCharset:protected] =&gt; 
                                        )

                                    [1] =&gt; Horde_Mime_Part Object
                                        (
                                            [_type:protected] =&gt; image
                                            [_subtype:protected] =&gt; gif
                                            [_contents:protected] =&gt; 
                                            [_transferEncoding:protected] =&gt; base64
                                            [_language:protected] =&gt; Array
                                                (
                                                    [0] =&gt; NIL
                                                )

                                            [_description:protected] =&gt; 
                                            [_disposition:protected] =&gt; 
                                            [_dispParams:protected] =&gt; Array
                                                (
                                                    [size] =&gt; 7848
                                                )

                                            [_contentTypeParams:protected] =&gt; Array
                                                (
                                                    [name] =&gt; image001.gif
                                                )

                                            [_parts:protected] =&gt; Array
                                                (
                                                )

                                            [_mimeid:protected] =&gt; 2
                                            [_eol:protected] =&gt; 

                                            [_temp:protected] =&gt; Array
                                                (
                                                )

                                            [_metadata:protected] =&gt; Array
                                                (
                                                )

                                            [_boundary:protected] =&gt; 
                                            [_bytes:protected] =&gt; 7848
                                            [_contentid:protected] =&gt; &lt;image001.gif@01CBDFD8.21142750&gt;
                                            [_reindex:protected] =&gt; 
                                            [_basepart:protected] =&gt; 
                                            [_hdrCharset:protected] =&gt; 
                                        )

                                )

                            [_mimeid:protected] =&gt; 0
                            [_eol:protected] =&gt; 

                            [_temp:protected] =&gt; Array
                                (
                                )

                            [_metadata:protected] =&gt; Array
                                (
                                )

                            [_boundary:protected] =&gt; =_1AlZd8LbMLtNefFEYqrgWIA
                            [_bytes:protected] =&gt; 
                            [_contentid:protected] =&gt; 
                            [_reindex:protected] =&gt; 
                            [_basepart:protected] =&gt; 
                            [_hdrCharset:protected] =&gt; 
                        )

                )

        )

)
Horde_Imap_Client_Socket Object
(
    [_tag:protected] =&gt; 3
    [_stream:protected] =&gt; Resource id #131
    [cache] =&gt; 
    [cacheFields] =&gt; Array
        (
            [9] =&gt; HICenv
            [10] =&gt; HICflags
            [8] =&gt; HIChdrs
            [11] =&gt; HICdate
            [12] =&gt; HICsize
            [1] =&gt; HICstruct
        )

    [changed] =&gt; 1
    [_params:protected] =&gt; Array
        (
            [encryptKey] =&gt; Array
                (
                    [0] =&gt; IMP_Imap
                    [1] =&gt; getEncryptKey
                )

            [hostspec] =&gt; mason
            [log] =&gt; Array
                (
                    [0] =&gt; IMP_Imap
                    [1] =&gt; logError
                )

            [port] =&gt; 143
            [secure] =&gt; 
            [timeout] =&gt; 30
            [debug_literal] =&gt; 1
            [debug] =&gt; /tmp/imapdebug.txt
            [password] =&gt; &lt;I OVERWROTE THE SAME BINARY GARBAGE&gt;
            [statuscache] =&gt; 1
            [username] =&gt; bergonz
            [cache] =&gt; Array
                (
                    [fields] =&gt; Array
                        (
                        )

                )

            [_passencrypt] =&gt; 1
        )

    [_isAuthenticated:protected] =&gt; 1
    [_isSecure:protected] =&gt; 
    [_selected:protected] =&gt; INBOX
    [_mode:protected] =&gt; 1
    [_init:protected] =&gt; Array
        (
            [enabled] =&gt; Array
                (
                )

            [namespace] =&gt; Array
                (
                    [40cd750bba9870f18aada2478b24840a] =&gt; Array
                        (
                            [INBOX.] =&gt; Array
                                (
                                    [name] =&gt; INBOX.
                                    [delimiter] =&gt; .
                                    [type] =&gt; 1
                                    [hidden] =&gt; 
                                )

                            [shared.] =&gt; Array
                                (
                                    [name] =&gt; shared.
                                    [delimiter] =&gt; .
                                    [type] =&gt; 3
                                    [hidden] =&gt; 
                                )

                        )

                )

            [s_charset] =&gt; Array
                (
                )

            [capability] =&gt; Array
                (
                    [IMAP4REV1] =&gt; 1
                    [LITERAL+] =&gt; 1
                    [SASL-IR] =&gt; 1
                    [LOGIN-REFERRALS] =&gt; 1
                    [ID] =&gt; 1
                    [ENABLE] =&gt; 1
                    [IDLE] =&gt; 1
                    [STARTTLS] =&gt; 1
                    [AUTH] =&gt; Array
                        (
                            [0] =&gt; PLAIN
                        )

                    [SORT] =&gt; Array
                        (
                            [0] =&gt; DISPLAY
                        )

                    [THREAD] =&gt; Array
                        (
                            [0] =&gt; REFERENCES
                            [1] =&gt; REFS
                        )

                    [MULTIAPPEND] =&gt; 1
                    [UNSELECT] =&gt; 1
                    [CHILDREN] =&gt; 1
                    [NAMESPACE] =&gt; 1
                    [UIDPLUS] =&gt; 1
                    [LIST-EXTENDED] =&gt; 1
                    [I18NLEVEL] =&gt; Array
                        (
                            [0] =&gt; 1
                        )

                    [CONDSTORE] =&gt; 1
                    [QRESYNC] =&gt; 1
                    [ESEARCH] =&gt; 1
                    [ESORT] =&gt; 1
                    [SEARCHRES] =&gt; 1
                    [WITHIN] =&gt; 1
                    [CONTEXT] =&gt; Array
                        (
                            [0] =&gt; SEARCH
                        )

                    [LIST-STATUS] =&gt; 1
                )

            [imapproxy] =&gt; 
            [authmethod] =&gt; PLAIN
        )

    [_debug:protected] =&gt; Resource id #125
    [_temp:protected] =&gt; Array
        (
            [no_cap] =&gt; 1
            [preauth] =&gt; 
            [parsestatuserr] =&gt; 
            [token] =&gt; 
            [loginerr] =&gt; LOGIN_AUTHENTICATIONFAILED
            [referral] =&gt; 
            [mailbox] =&gt; Array
                (
                    [name] =&gt; INBOX
                    [flags] =&gt; Array
                        (
                            [0] =&gt; \answered
                            [1] =&gt; \flagged
                            [2] =&gt; \deleted
                            [3] =&gt; \seen
                            [4] =&gt; \draft
                            [5] =&gt; unknown-2
                            [6] =&gt; unknown-3
                            [7] =&gt; $mdnsent
                            [8] =&gt; $forwarded
                            [9] =&gt; junk
                            [10] =&gt; nonjunk
                            [11] =&gt; $label1
                            [12] =&gt; $has_cal
                        )

                    [permflags] =&gt; Array
                        (
                        )

                    [messages] =&gt; 871
                    [recent] =&gt; 0
                    [firstunseen] =&gt; 2
                    [uidvalidity] =&gt; 1221554981
                    [uidnext] =&gt; 368584
                    [highestmodseq] =&gt; 50140
                )

            [literal8] =&gt; Array
                (
                )

        )

    [_utils:protected] =&gt; Horde_Imap_Client_Utils Object
        (
        )

)
Array
(
    [368578] =&gt; Horde_Imap_Client_Data_Fetch Object
        (
            [_data:protected] =&gt; Array
                (
                    [14] =&gt; 866
                    [13] =&gt; 368578
                    [6] =&gt; Array
                        (
                            [1] =&gt; Array
                                (
                                    [d] =&gt; 
                                    [t] =&gt; Resource id #153
                                )

                        )

                )

        )

)
Horde_Imap_Client_Socket Object
(
    [_tag:protected] =&gt; 4
    [_stream:protected] =&gt; Resource id #131
    [cache] =&gt; 
    [cacheFields] =&gt; Array
        (
            [9] =&gt; HICenv
            [10] =&gt; HICflags
            [8] =&gt; HIChdrs
            [11] =&gt; HICdate
            [12] =&gt; HICsize
            [1] =&gt; HICstruct
        )

    [changed] =&gt; 1
    [_params:protected] =&gt; Array
        (
            [encryptKey] =&gt; Array
                (
                    [0] =&gt; IMP_Imap
                    [1] =&gt; getEncryptKey
                )

            [hostspec] =&gt; mason
            [log] =&gt; Array
                (
                    [0] =&gt; IMP_Imap
                    [1] =&gt; logError
                )

            [port] =&gt; 143
            [secure] =&gt; 
            [timeout] =&gt; 30
            [debug_literal] =&gt; 1
            [debug] =&gt; /tmp/imapdebug.txt
            [password] =&gt; &lt;DITTO&gt;
            [statuscache] =&gt; 1
            [username] =&gt; bergonz
            [cache] =&gt; Array
                (
                    [fields] =&gt; Array
                        (
                        )

                )

            [_passencrypt] =&gt; 1
        )

    [_isAuthenticated:protected] =&gt; 1
    [_isSecure:protected] =&gt; 
    [_selected:protected] =&gt; INBOX
    [_mode:protected] =&gt; 1
    [_init:protected] =&gt; Array
        (
            [enabled] =&gt; Array
                (
                )

            [namespace] =&gt; Array
                (
                    [40cd750bba9870f18aada2478b24840a] =&gt; Array
                        (
                            [INBOX.] =&gt; Array
                                (
                                    [name] =&gt; INBOX.
                                    [delimiter] =&gt; .
                                    [type] =&gt; 1
                                    [hidden] =&gt; 
                                )

                            [shared.] =&gt; Array
                                (
                                    [name] =&gt; shared.
                                    [delimiter] =&gt; .
                                    [type] =&gt; 3
                                    [hidden] =&gt; 
                                )

                        )

                )

            [s_charset] =&gt; Array
                (
                )

            [capability] =&gt; Array
                (
                    [IMAP4REV1] =&gt; 1
                    [LITERAL+] =&gt; 1
                    [SASL-IR] =&gt; 1
                    [LOGIN-REFERRALS] =&gt; 1
                    [ID] =&gt; 1
                    [ENABLE] =&gt; 1
                    [IDLE] =&gt; 1
                    [STARTTLS] =&gt; 1
                    [AUTH] =&gt; Array
                        (
                            [0] =&gt; PLAIN
                        )

                    [SORT] =&gt; Array
                        (
                            [0] =&gt; DISPLAY
                        )

                    [THREAD] =&gt; Array
                        (
                            [0] =&gt; REFERENCES
                            [1] =&gt; REFS
                        )

                    [MULTIAPPEND] =&gt; 1
                    [UNSELECT] =&gt; 1
                    [CHILDREN] =&gt; 1
                    [NAMESPACE] =&gt; 1
                    [UIDPLUS] =&gt; 1
                    [LIST-EXTENDED] =&gt; 1
                    [I18NLEVEL] =&gt; Array
                        (
                            [0] =&gt; 1
                        )

                    [CONDSTORE] =&gt; 1
                    [QRESYNC] =&gt; 1
                    [ESEARCH] =&gt; 1
                    [ESORT] =&gt; 1
                    [SEARCHRES] =&gt; 1
                    [WITHIN] =&gt; 1
                    [CONTEXT] =&gt; Array
                        (
                            [0] =&gt; SEARCH
                        )

                    [LIST-STATUS] =&gt; 1
                )

            [imapproxy] =&gt; 
            [authmethod] =&gt; PLAIN
        )

    [_debug:protected] =&gt; Resource id #125
    [_temp:protected] =&gt; Array
        (
            [no_cap] =&gt; 1
            [preauth] =&gt; 
            [parsestatuserr] =&gt; 
            [token] =&gt; 
            [loginerr] =&gt; LOGIN_AUTHENTICATIONFAILED
            [referral] =&gt; 
            [mailbox] =&gt; Array
                (
                    [name] =&gt; INBOX
                    [flags] =&gt; Array
                        (
                            [0] =&gt; \answered
                            [1] =&gt; \flagged
                            [2] =&gt; \deleted
                            [3] =&gt; \seen
                            [4] =&gt; \draft
                            [5] =&gt; unknown-2
                            [6] =&gt; unknown-3
                            [7] =&gt; $mdnsent
                            [8] =&gt; $forwarded
                            [9] =&gt; junk
                            [10] =&gt; nonjunk
                            [11] =&gt; $label1
                            [12] =&gt; $has_cal
                        )

                    [permflags] =&gt; Array
                        (
                        )

                    [messages] =&gt; 871
                    [recent] =&gt; 0
                    [firstunseen] =&gt; 2
                    [uidvalidity] =&gt; 1221554981
                    [uidnext] =&gt; 368584
                    [highestmodseq] =&gt; 50140
                )

            [literal8] =&gt; Array
                (
                )

        )

    [_utils:protected] =&gt; Horde_Imap_Client_Utils Object
        (
        )

)
Array
(
    [368578] =&gt; Horde_Imap_Client_Data_Fetch Object
        (
            [_data:protected] =&gt; Array
                (
                    [14] =&gt; 866
                    [13] =&gt; 368578
                    [6] =&gt; Array
                        (
                            [1.2] =&gt; Array
                                (
                                    [d] =&gt; 
                                    [t] =&gt; Resource id #157
                                )

                        )

                )

        )

)
</description> 
   <pubDate>Fri, 11 Mar 2011 10:01:35 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9644#t62222</link> 
  </item> 
   
  <item> 
   <title>&gt; Array
&gt; (
&gt;     [368578] =&gt; Horde_Imap_Client_Data_Fetch</title> 
   <description>&gt; Array
&gt; (
&gt;     [368578] =&gt; Horde_Imap_Client_Data_Fetch Object
&gt;         (
&gt;             [_data:protected] =&gt; Array
&gt;                 (
&gt;                     [14] =&gt; 866
&gt;                     [13] =&gt; 368578
&gt;                     [6] =&gt; Array
&gt;                         (
&gt;                             [1.2] =&gt; Array
&gt;                                 (
&gt;                                     [d] =&gt;
&gt;                                     [t] =&gt; Resource id #157
&gt;                                 )
&gt;
&gt;                         )
&gt;
&gt;                 )
&gt;
&gt;         )
&gt;
&gt; )

This looks entirely correct.  A BODYPART fetch from UID 368578 is returning bodytext (Resource id #157).

You can do further debugging in imp/lib/Contents.php around line 492 (this is where the &quot;This part is empty&quot; status message is being set).

The data is written to the resource stream in Horde_Imap_Client_Socket line 3705.  So you can also poke around there.</description> 
   <pubDate>Fri, 11 Mar 2011 21:10:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9644#t62232</link> 
  </item> 
   
  <item> 
   <title>Looking back through this ticket, I see:

PHP 5.2.6-1+lenn</title> 
   <description>Looking back through this ticket, I see:

PHP 5.2.6-1+lenny9 with Suhosin-Patch 0.9.6.2

Maybe a suhosin issue?  We are writing to a temporary stream, which uses the system temporary directory.  Don&#039;t know if this is the kind of thing suhosin (incorrectly) is trying to block.</description> 
   <pubDate>Fri, 11 Mar 2011 21:14:58 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9644#t62233</link> 
  </item> 
   
  <item> 
   <title>suhosin.simulation=On makes no difference, but I followed yo</title> 
   <description>suhosin.simulation=On makes no difference, but I followed your guidance and found this workaround. In line 3743 of /usr/share/php/Horde/Imap/Client/Socket.php (just before the return) I inserted: &quot;rewind($data);&quot;. This resolves the issue, now I see messages, download attachments, etc.

I also tried if it was a problem with the imap debug, but with:
- debug disabled in backends.cfg
- rewind omitted
the issue is still there. What really makes a difference is the rewind. Hope this ticket and workaround helps you find something interesting. Thank you very much for your help.


</description> 
   <pubDate>Mon, 14 Mar 2011 10:08:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9644#t62288</link> 
  </item> 
   
  <item> 
   <title>Confirmed, problem and solution. This is on Ubuntu 8.04 LTS </title> 
   <description>Confirmed, problem and solution. This is on Ubuntu 8.04 LTS eg. PHP 5.2.4-2ubuntu5.14</description> 
   <pubDate>Mon, 14 Mar 2011 14:31:31 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9644#t62289</link> 
  </item> 
   
  <item> 
   <title>&gt; Confirmed, problem and solution. This is on Ubuntu 8.04 LT</title> 
   <description>&gt; Confirmed, problem and solution. This is on Ubuntu 8.04 LTS eg. PHP 
&gt; 5.2.4-2ubuntu5.14

Now we&#039;re getting somewhere... namely that your PHP installations are broken.

There is NO need to rewind the data stream at the code location mentioned.  I have verified that the stream is not rewound on my installation, and I see everything just fine.  The stream is only rewound when needed in Horde_Imap_Client_Data_Fetch.

Can you try running this test script on your machine?

&lt;?php
$a = fopen(&#039;php://temp&#039;, &#039;w+&#039;);
fwrite($a, &#039;A&#039;);
print stream_get_contents($a, -1, 0) . &quot;\n&quot;;

This should return &#039;A&#039;.  I&#039;m guessing on your machine it will return nothing (i.e. stream_get_contents() is broken).</description> 
   <pubDate>Tue, 15 Mar 2011 02:50:14 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9644#t62305</link> 
  </item> 
   
  <item> 
   <title>And here you go:
http://bugs.php.net/bug.php?id=46426</title> 
   <description>And here you go:
http://bugs.php.net/bug.php?id=46426</description> 
   <pubDate>Tue, 15 Mar 2011 02:52:56 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9644#t62306</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Bug #9644: W</title> 
   <description>Changes have been made in Git for this ticket:

Bug #9644: Workaround PHP &lt; 5.2.6 (broken stream handling)

 5 files changed, 16 insertions(+), 8 deletions(-)
http://git.horde.org/horde-git/-/commit/1c3da149c4d76a2c5984f15e6c9e235c8fd9c40a</description> 
   <pubDate>Tue, 15 Mar 2011 03:00:45 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9644#t62307</link> 
  </item> 
   
  <item> 
   <title>Yes, both your script and the one found in the PHP bug repor</title> 
   <description>Yes, both your script and the one found in the PHP bug report show that my PHP is broken as you described. I removed my workaround and applied your patch and everything is OK. Thanx!
</description> 
   <pubDate>Tue, 15 Mar 2011 09:10:36 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9644#t62317</link> 
  </item> 
   
  <item> 
   <title>Can someone explain the last comment at http://bugs.php.net/</title> 
   <description>Can someone explain the last comment at http://bugs.php.net/bug.php?id=46426?
Is this Bug fixed or flagged as Bogus for 5.2.x?
According to the first comment it is fixed since 30.10.2008 according to the last comment it is no PHP Bug?
</description> 
   <pubDate>Tue, 15 Mar 2011 11:02:12 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9644#t62320</link> 
  </item> 
   
  <item> 
   <title>&gt; Is this Bug fixed or flagged as Bogus for 5.2.x?

AFAIU </title> 
   <description>&gt; Is this Bug fixed or flagged as Bogus for 5.2.x?

AFAIU the bogus state refers to the (not) required documentation.</description> 
   <pubDate>Tue, 15 Mar 2011 11:28:44 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9644#t62321</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
