<?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>downloading a mailbox doesn&#039;t work</title> 
  <pubDate>Fri, 10 Apr 2026 18:27:14 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/10434</link> 
  <atom:link rel="self" type="application/rss+xml" title="downloading a mailbox doesn&#039;t work" href="https://bugs.horde.org/ticket/10434/rss" /> 
  <description>downloading a mailbox doesn&#039;t work</description> 
 
   
   
  <item> 
   <title>Downloading a mailbox doesn&#039;t work in latest release and git</title> 
   <description>Downloading a mailbox doesn&#039;t work in latest release and git of IMP.

Logs say:

2011-08-17T12:48:14+03:00 NOTICE: HORDE [imp] PHP ERROR: Undefined offset: 1 [pid 30275 on line 339 of &quot;/var/www/html/horde/imp/lib/Folder.php&quot;]

And

[17-Aug-2011 12:48:57] PHP Fatal error:  Call to a member function getSize() on a non-object in /var/www/html/horde/imp/lib/Folder.php on line 339</description> 
   <pubDate>Wed, 17 Aug 2011 09:52:45 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10434#t67008</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Encode downl</title> 
   <description>Changes have been made in Git for this ticket:

Encode download mailbox (Bug #10434).

 1 files changed, 1 insertions(+), 1 deletions(-)
http://git.horde.org/horde-git/-/commit/86f9002044376dc831b2b2706f60a00fe3c16b46</description> 
   <pubDate>Wed, 17 Aug 2011 12:40:16 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10434#t67014</link> 
  </item> 
   
  <item> 
   <title>I don&#039;t get this error, but a different one, even after fixi</title> 
   <description>I don&#039;t get this error, but a different one, even after fixing the encoding:

2011-08-17T14:33:02+02:00 ERR: HEADHORDE [imp] IMAP error: Mailbox does not exist [pid 3412 on line 340 of &quot;/home/jan/horde-git/imp/lib/Imap.php&quot;]</description> 
   <pubDate>Wed, 17 Aug 2011 12:41:34 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10434#t67015</link> 
  </item> 
   
  <item> 
   <title>&gt; I don&#039;t get this error, but a different one, even after fi</title> 
   <description>&gt; I don&#039;t get this error, but a different one, even after fixing the encoding:
&gt;
&gt; 2011-08-17T14:33:02+02:00 ERR: HEADHORDE [imp] IMAP error: Mailbox 
&gt; does not exist [pid 3412 on line 340 of 
&gt; &quot;/home/jan/horde-git/imp/lib/Imap.php&quot;]

Works fine for me - I don&#039;t see this.</description> 
   <pubDate>Wed, 17 Aug 2011 16:59:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10434#t67020</link> 
  </item> 
   
  <item> 
   <title>I&#039;m using traditional view.</title> 
   <description>I&#039;m using traditional view.</description> 
   <pubDate>Wed, 17 Aug 2011 17:53:23 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10434#t67021</link> 
  </item> 
   
  <item> 
   <title>&gt; 2011-08-17T12:48:14+03:00 NOTICE: HORDE [imp] PHP ERROR: U</title> 
   <description>&gt; 2011-08-17T12:48:14+03:00 NOTICE: HORDE [imp] PHP ERROR: Undefined 
&gt; offset: 1 [pid 30275 on line 339 of 
&gt; &quot;/var/www/html/horde/imp/lib/Folder.php&quot;]
&gt;
&gt; And
&gt;
&gt; [17-Aug-2011 12:48:57] PHP Fatal error:  Call to a member function 
&gt; getSize() on a non-object in /var/www/html/horde/imp/lib/Folder.php 
&gt; on line 339

I&#039;m getting this error too now. $size is an empty array there, even though the server seem to return the correct answer:

(1313614177,3587) C: 4 UID SEARCH ALL
(1313614177,3946) S: * SEARCH 39078 48164 49071 49240 49702 49948 50009 50018 50084 50120 50194 50343 50474 50476 50526 50527 50528 50588 50598 50721 50725 50729 50749 50756 50765 50810 50820 50845 50875 50951 51076 51104 51117 51126 51157 51161 51165 51166 51169 51170
(1313614177,3957) S: 4 OK Completed (40 msgs in 0.000 secs)
&gt;&gt;&gt; Deleted messages from cache (mailbox: INBOX.horde.bugs; UIDs: 51168)
&gt;&gt;&gt; Retrieved from cache (mailbox: INBOX.horde.bugs; UIDs: 51165:51166)
(1313614177,4029) C: 5 FETCH 1:36,39:40 (RFC822.SIZE)
(1313614177,4347) S: * 1 FETCH (RFC822.SIZE 5796)
(1313614177,4355) S: * 2 FETCH (RFC822.SIZE 4036)
(1313614177,4361) S: * 3 FETCH (RFC822.SIZE 5234)
(1313614177,4367) S: * 4 FETCH (RFC822.SIZE 4064)
(1313614177,4372) S: * 5 FETCH (RFC822.SIZE 4059)
(1313614177,4378) S: * 6 FETCH (RFC822.SIZE 5149)
(1313614177,4384) S: * 7 FETCH (RFC822.SIZE 4661)
(1313614177,4389) S: * 8 FETCH (RFC822.SIZE 5184)
(1313614177,4395) S: * 9 FETCH (RFC822.SIZE 6375)
(1313614177,4400) S: * 10 FETCH (RFC822.SIZE 4568)
(1313614177,4406) S: * 11 FETCH (RFC822.SIZE 4169)
(1313614177,4412) S: * 12 FETCH (RFC822.SIZE 5098)
(1313614177,4417) S: * 13 FETCH (RFC822.SIZE 5299)
(1313614177,4423) S: * 14 FETCH (RFC822.SIZE 4290)
(1313614177,4429) S: * 15 FETCH (RFC822.SIZE 4901)
(1313614177,4434) S: * 16 FETCH (RFC822.SIZE 5551)
(1313614177,4440) S: * 17 FETCH (RFC822.SIZE 4337)
(1313614177,4448) S: * 18 FETCH (RFC822.SIZE 3974)
(1313614177,4454) S: * 19 FETCH (RFC822.SIZE 4603)
(1313614177,4459) S: * 20 FETCH (RFC822.SIZE 4069)
(1313614177,4465) S: * 21 FETCH (RFC822.SIZE 4441)
(1313614177,4471) S: * 22 FETCH (RFC822.SIZE 4170)
(1313614177,4477) S: * 23 FETCH (RFC822.SIZE 5765)
(1313614177,4482) S: * 24 FETCH (RFC822.SIZE 4276)
(1313614177,4488) S: * 25 FETCH (RFC822.SIZE 4532)
(1313614177,4494) S: * 26 FETCH (RFC822.SIZE 4068)
(1313614177,4499) S: * 27 FETCH (RFC822.SIZE 4144)
(1313614177,4505) S: * 28 FETCH (RFC822.SIZE 4288)
(1313614177,4511) S: * 29 FETCH (RFC822.SIZE 4261)
(1313614177,4516) S: * 30 FETCH (RFC822.SIZE 4103)
(1313614177,4522) S: * 31 FETCH (RFC822.SIZE 5665)
(1313614177,4528) S: * 32 FETCH (RFC822.SIZE 4252)
(1313614177,4533) S: * 33 FETCH (RFC822.SIZE 4317)
(1313614177,4539) S: * 34 FETCH (RFC822.SIZE 4140)
(1313614177,4546) S: * 35 FETCH (RFC822.SIZE 5296)
(1313614177,4552) S: * 36 FETCH (RFC822.SIZE 4550)
(1313614177,4558) S: * 39 FETCH (RFC822.SIZE 4034)
(1313614177,4564) S: * 40 FETCH (RFC822.SIZE 4037)
(1313614177,4569) S: 5 OK Completed (0.000 sec)
(1313614177,4593) C: 6 UID SEARCH 1:40
(1313614177,4949) S: * SEARCH 39078 48164 49071 49240 49702 49948 50009 50018 50084 50120 50194 50343 50474 50476 50526 50527 50528 50588 50598 50721 50725 50729 50749 50756 50765 50810 50820 50845 50875 50951 51076 51104 51117 51126 51157 51161 51165 51166 51169 51170
(1313614177,4969) S: 6 OK Completed (40 msgs in 0.000 secs)
&gt;&gt;&gt; Stored in cache (mailbox: INBOX.horde.bugs; UIDs: 39078,48164,49071,49240,49702,49948,50009,50018,50084,50120,50194,50343,50474,50476,50526:50528,50588,50598,50721,50725,50729,50749,50756,50765,50810,50820,50845,50875,50951,51076,51104,51117,51126,51157,51161,51165:51166,51169:51170)
</description> 
   <pubDate>Wed, 17 Aug 2011 20:52:23 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10434#t67026</link> 
  </item> 
   
  <item> 
   <title>Someone else will have to track down because I can&#039;t reprodu</title> 
   <description>Someone else will have to track down because I can&#039;t reproduce any of this.</description> 
   <pubDate>Wed, 17 Aug 2011 23:01:11 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10434#t67027</link> 
  </item> 
   
  <item> 
   <title>&gt; Someone else will have to track down because I can&#039;t repro</title> 
   <description>&gt; Someone else will have to track down because I can&#039;t reproduce any of this.

One place to start: what IS the value of $size returned from the fetch() call in IMP_Folder::generateMbox()?</description> 
   <pubDate>Thu, 18 Aug 2011 18:44:25 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10434#t67034</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; Someone else will have to track down because I can&#039;t repr</title> 
   <description>&gt;&gt; Someone else will have to track down because I can&#039;t reproduce any of this.
&gt;
&gt; One place to start: what IS the value of $size returned from the 
&gt; fetch() call in IMP_Folder::generateMbox()?

Empty Array() for me.</description> 
   <pubDate>Thu, 18 Aug 2011 20:53:26 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10434#t67037</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt;&gt; Someone else will have to track down because I can&#039;t rep</title> 
   <description>&gt;&gt;&gt; Someone else will have to track down because I can&#039;t reproduce any of this.
&gt;&gt;
&gt;&gt; One place to start: what IS the value of $size returned from the
&gt;&gt; fetch() call in IMP_Folder::generateMbox()?
&gt;
&gt; Empty Array() for me.

Same here. I tried to step-debug it, but I got completely lost in the Imap_Client code. Several times.</description> 
   <pubDate>Thu, 18 Aug 2011 21:23:16 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10434#t67038</link> 
  </item> 
   
  <item> 
   <title>&gt; Same here. I tried to step-debug it, but I got completely </title> 
   <description>&gt; Same here. I tried to step-debug it, but I got completely lost in the 
&gt; Imap_Client code. Several times.

You are both using caching.  Check to make sure the default fetch entries are set correctly (Horde_Imap_Client::fetch(), line 2080; $ret variable).  $ret should be an array with sequence numbers as keys and empty Data objects as values.

Then check the cached data in Horde_Imap_Client_Base::fetch() (line 2117; $data variable).  Make sure that cached data is valid.

If all looks good, check to make sure the return variable is still correctly set before we start calling _fetch() to grab the data we don&#039;t have (line 2204; foreach loop).</description> 
   <pubDate>Thu, 18 Aug 2011 21:38:12 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10434#t67039</link> 
  </item> 
   
  <item> 
   <title>&gt; You are both using caching.  Check to make sure the defaul</title> 
   <description>&gt; You are both using caching.  Check to make sure the default fetch 
&gt; entries are set correctly (Horde_Imap_Client::fetch(), line 2080; 
&gt; $ret variable).  $ret should be an array with sequence numbers as 
&gt; keys and empty Data objects as values.

In a mailbox with 1 message, I get the following for $ret:

array(1) {
  [1]=&gt;
  object(Horde_Imap_Client_Data_Fetch)#228 (1) {
    [&quot;_data&quot;:protected]=&gt;
    array(0) {
    }
  }
}

For cached data ($data):

array(1) {
  [1699]=&gt;
  array(2) {
    [&quot;HICenv&quot;]=&gt;
    object(Horde_Imap_Client_Data_Envelope)#230 (1) {
      [&quot;_data&quot;:protected]=&gt;
      array(7) {
 [snip]
    }
    [&quot;HICdate&quot;]=&gt;
    object(Horde_Imap_Client_DateTime)#234 (3) {
      [&quot;_datetime&quot;:&quot;Horde_Imap_Client_DateTime&quot;:private]=&gt;
      NULL
      [&quot;_error&quot;:&quot;Horde_Imap_Client_DateTime&quot;:private]=&gt;
      bool(false)
      [&quot;_string&quot;:&quot;Horde_Imap_Client_DateTime&quot;:private]=&gt;
      string(26) &quot;23-Nov-2010 12:11:02 -0700&quot;
    }
  }
}

And for the second $ret:

array(1) {
  [1]=&gt;
  object(Horde_Imap_Client_Data_Fetch)#228 (1) {
    [&quot;_data&quot;:protected]=&gt;
    array(4) {
      [14]=&gt;
      int(1)
      [13]=&gt;
      int(1699)
      [9]=&gt;
      object(Horde_Imap_Client_Data_Envelope)#230 (1) {
[snip]
      }
      [11]=&gt;
      object(Horde_Imap_Client_DateTime)#234 (3) {
        [&quot;_datetime&quot;:&quot;Horde_Imap_Client_DateTime&quot;:private]=&gt;
        NULL
        [&quot;_error&quot;:&quot;Horde_Imap_Client_DateTime&quot;:private]=&gt;
        bool(false)
        [&quot;_string&quot;:&quot;Horde_Imap_Client_DateTime&quot;:private]=&gt;
        string(26) &quot;23-Nov-2010 12:11:02 -0700&quot;
      }
    }
  }
}
</description> 
   <pubDate>Thu, 18 Aug 2011 21:44:13 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10434#t67040</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; Same here. I tried to step-debug it, but I got completely</title> 
   <description>&gt;&gt; Same here. I tried to step-debug it, but I got completely lost in the
&gt;&gt; Imap_Client code. Several times.
&gt;
&gt; You are both using caching.  Check to make sure the default fetch 
&gt; entries are set correctly (Horde_Imap_Client::fetch(), line 2080; 
&gt; $ret variable).  $ret should be an array with sequence numbers as 
&gt; keys and empty Data objects as values.
&gt;
&gt; Then check the cached data in Horde_Imap_Client_Base::fetch() (line 
&gt; 2117; $data variable).  Make sure that cached data is valid.
&gt;
&gt; If all looks good, check to make sure the return variable is still 
&gt; correctly set before we start calling _fetch() to grab the data we 
&gt; don&#039;t have (line 2204; foreach loop).

It looks good until there. For some reason this code is called twice, but both times the $ret contents looks fine:

array
  1 =&gt; 
    object(Horde_Imap_Client_Data_Fetch)[439]
      protected &#039;_data&#039; =&gt; 
        array
          14 =&gt; int 1
          13 =&gt; int 39078
          12 =&gt; int 5796

and

array
  1 =&gt; 
    object(Horde_Imap_Client_Data_Fetch)[477]
      protected &#039;_data&#039; =&gt; 
        array
          14 =&gt; int 1
          13 =&gt; int 39078
          9 =&gt; 
            object(Horde_Imap_Client_Data_Envelope)[591]
              protected &#039;_data&#039; =&gt; 
                array
                  &#039;date&#039; =&gt; 
                    object(Horde_Imap_Client_DateTime)[592]
                      ...
                  &#039;subject&#039; =&gt; string &#039;[Tickets #8353] Re: Sort out LDAP preferences mess with user bindings&#039; (length=69)
                  &#039;in_reply_to&#039; =&gt; string &#039;&lt;whups-8353-fa27ef3ef6570e32a79e74deca7c1bc3@bugs.horde.org&gt;&#039; (length=60)
                  &#039;message_id&#039; =&gt; string &#039;&lt;20090616114609.ooocc4w@bugs.horde.org&gt;&#039; (length=39)
                  &#039;from&#039; =&gt; 
                    array
                      ...
                  &#039;to&#039; =&gt; 
                    array
                      ...
          11 =&gt; 
            object(Horde_Imap_Client_DateTime)[593]
              private &#039;_datetime&#039; =&gt; null
              private &#039;_error&#039; =&gt; boolean false
              private &#039;_string&#039; =&gt; string &#039;16-Jun-2009 17:48:14 +0200&#039; (length=26)

but after the _fetch() call, in the second run, $ret is empty. so these are contents of $ret after _fetch():

array
  1 =&gt; 
    object(Horde_Imap_Client_Data_Fetch)[439]
      protected &#039;_data&#039; =&gt; 
        array
          14 =&gt; int 1
          13 =&gt; int 39078
          12 =&gt; int 5796

and

array
  empty
</description> 
   <pubDate>Thu, 18 Aug 2011 21:54:31 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10434#t67041</link> 
  </item> 
   
  <item> 
   <title>&gt; It looks good until there. For some reason this code is ca</title> 
   <description>&gt; It looks good until there. For some reason this code is called twice, 

That&#039;s because there are 2 query calls in IMP_Folder::generateMbox().  One is for size only, the next is for envelope, imap date, and fullText of the message.

&gt; but after the _fetch() call, in the second run, $ret is empty. so 
&gt; these are contents of $ret after _fetch():
&gt;
&gt; array
&gt;   1 =&gt;
&gt;     object(Horde_Imap_Client_Data_Fetch)[439]
&gt;       protected &#039;_data&#039; =&gt;
&gt;         array
&gt;           14 =&gt; int 1
&gt;           13 =&gt; int 39078
&gt;           12 =&gt; int 5796

This is correct - the object has the size information (key 12).

&gt; array
&gt;   empty

For some reason, the call to grab the full text of the message is resetting the results array.
</description> 
   <pubDate>Thu, 18 Aug 2011 22:28:18 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10434#t67042</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

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

Bug #10434: Shot in the dark fix

 1 files changed, 43 insertions(+), 30 deletions(-)
http://git.horde.org/horde-git/-/commit/19b38eff40e9cf314f6ba2900acb516a55e71e94</description> 
   <pubDate>Thu, 18 Aug 2011 22:49:53 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10434#t67043</link> 
  </item> 
   
  <item> 
   <title>Try this shot in the dark fix attempt.</title> 
   <description>Try this shot in the dark fix attempt.</description> 
   <pubDate>Thu, 18 Aug 2011 22:50:42 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10434#t67044</link> 
  </item> 
   
  <item> 
   <title>Nice shot!</title> 
   <description>Nice shot!</description> 
   <pubDate>Thu, 18 Aug 2011 23:20:05 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10434#t67045</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Clean up for</title> 
   <description>Changes have been made in Git for this ticket:

Clean up for for Bug #10434

 2 files changed, 12 insertions(+), 11 deletions(-)
http://git.horde.org/horde-git/-/commit/09dad4627974e59ac6d8fde17c309db8c721d07f</description> 
   <pubDate>Fri, 19 Aug 2011 17:22:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10434#t67052</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
