[Tickets #10434] Re: downloading a mailbox doesn't work

bugs at horde.org bugs at horde.org
Thu Aug 18 22:28:19 UTC 2011


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/10434
------------------------------------------------------------------------------
  Ticket             | 10434
  Updated By         | Michael Slusarz <slusarz at horde.org>
  Summary            | downloading a mailbox doesn't work
  Queue              | IMP
  Version            | Git master
  Type               | Bug
  State              | Feedback
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


Michael Slusarz <slusarz at horde.org> (2011-08-18 22:28) wrote:

> It looks good until there. For some reason this code is called twice,

That'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.

> but after the _fetch() call, in the second run, $ret is empty. so  
> these are contents of $ret after _fetch():
>
> array
>   1 =>
>     object(Horde_Imap_Client_Data_Fetch)[439]
>       protected '_data' =>
>         array
>           14 => int 1
>           13 => int 39078
>           12 => int 5796

This is correct - the object has the size information (key 12).

> array
>   empty

For some reason, the call to grab the full text of the message is  
resetting the results array.






More information about the bugs mailing list