[Tickets #3019] imp goes into an infinite loop for a couple of accounts (in Folder.php)
bugs@bugs.horde.org
bugs at bugs.horde.org
Tue Nov 29 12:12:37 PST 2005
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=3019
-----------------------------------------------------------------------
Ticket | 3019
Updated By | seker at uwyo.edu
Summary | imp goes into an infinite loop for a couple of accounts (in Folder.php)
Queue | IMP
Version | HEAD
State | Feedback
Priority | 2. Medium
Type | Bug
Owners |
-----------------------------------------------------------------------
seker at uwyo.edu (2005-11-29 12:12) wrote:
still doesn't work. slightly Different error messages now:
[client ipaddr] PHP Warning: explode(): Empty delimiter. in
/var/www/html/horde/imp/lib/Folder.php on line 168, referer:
https://webmail/horde/services/portal/sidebar.php
[client ipaddr ] PHP Warning: array_pop(): The argument should be an array
in /var/www/html/horde/imp/lib/Folder.php on line 169, referer
: https://webmail/horde/services/portal/sidebar.php
Repeat starts here:
[client ipaddr] PHP Warning: implode(): Bad arguments. in
/var/www/html/horde/imp/lib/Folder.php on line 174, referer:
https://webmail/horde/services/portal/sidebar.php
[client ipaddr] PHP Warning: array_pop(): The argument should be an array
in /var/www/html/horde/imp/lib/Folder.php on line 186, referer
: https://webmail/horde/services/portal/sidebar.php
and repeat...
making sure the line number matchup, heres the code, starting at 168 through
187
168 $parts = explode($mailbox['d'], $label);
169 $subfolder = array_pop($parts);
170 $parentparts = $parts;
171 $pstack = array();
172
173 while ($i = count($parentparts)) {
174 $parent = implode($mailbox['d'], $parentparts);
175 if (!empty($parent) &&
176 !isset($seen[$parent])) {
177 $seen[$parent] = true;
178 $plabel = str_repeat(' ', 4 * ($i - 1)) .
String::convertCharset($parts[($i - 1)], 'UTF7-IMAP');
179 if (strlen($plabel) > 26) {
180 $pabbrev = String::substr($plabel, 0, 10)
. '...' . String::substr($plabel, -13, 13);
181 } else {
182 $pabbrev = $plabel;
183 }
184 $pstack[$parent] = array('val' => '', 'label'
=> $plabel, 'abbrev' => $pabbrev);
185 }
186 array_pop($parentparts);
187 }
More information about the bugs
mailing list