[Tickets #10434] Re: downloading a mailbox doesn't work
bugs at horde.org
bugs at horde.org
Thu Aug 18 21:54:31 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 | Jan Schneider <jan 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 |
------------------------------------------------------------------------------
Jan Schneider <jan at horde.org> (2011-08-18 21:54) wrote:
>> Same here. I tried to step-debug it, but I got completely lost in the
>> 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'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 =>
object(Horde_Imap_Client_Data_Fetch)[439]
protected '_data' =>
array
14 => int 1
13 => int 39078
12 => int 5796
and
array
1 =>
object(Horde_Imap_Client_Data_Fetch)[477]
protected '_data' =>
array
14 => int 1
13 => int 39078
9 =>
object(Horde_Imap_Client_Data_Envelope)[591]
protected '_data' =>
array
'date' =>
object(Horde_Imap_Client_DateTime)[592]
...
'subject' => string '[Tickets #8353] Re: Sort out
LDAP preferences mess with user bindings' (length=69)
'in_reply_to' => string
'<whups-8353-fa27ef3ef6570e32a79e74deca7c1bc3 at bugs.horde.org>'
(length=60)
'message_id' => string
'<20090616114609.ooocc4w at bugs.horde.org>' (length=39)
'from' =>
array
...
'to' =>
array
...
11 =>
object(Horde_Imap_Client_DateTime)[593]
private '_datetime' => null
private '_error' => boolean false
private '_string' => string '16-Jun-2009 17:48:14
+0200' (length=26)
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
and
array
empty
More information about the bugs
mailing list