6.0.0-beta1
7/7/25

[#9317] IMP doesn't work for users with 0 folders
Summary IMP doesn't work for users with 0 folders
Queue IMP
Queue Version 4.3.8
Type Bug
State Duplicate
Priority 2. Medium
Owners
Requester Valentin.Vidic (at) carnet (dot) hr
Created 10/19/2010 (5375 days ago)
Due
Updated 10/19/2010 (5375 days ago)
Assigned
Resolved 10/19/2010 (5375 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
10/19/2010 02:40:16 PM Jan Schneider Comment #2
State ⇒ Duplicate
Patch ⇒ No
Reply to this comment
Duplicate of bug #9273 (and a few others).
10/19/2010 01:07:35 PM Valentin (dot) Vidic (at) carnet (dot) hr Comment #1
Priority ⇒ 2. Medium
New Attachment: names.diff Download
Patch ⇒ Yes
Milestone ⇒
Queue ⇒ IMP
Summary ⇒ IMP doesn't work for users with 0 folders
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
If the user has 0 mailboxes the following error appears when trying to 
open IMP:

Warning: array_keys() [function.array-keys]: The first argument should 
be an array in /srv/webmail.carnet.hr/www/imp/lib/IMAP/Tree.php on 
line 328

Warning: array_intersect() [function.array-intersect]: Argument #2 is 
not an array in /srv/webmail.carnet.hr/www/imp/lib/IMAP/Tree.php on 
line 328

Warning: array_flip() [function.array-flip]: The argument should be an 
array in /srv/webmail.carnet.hr/www/imp/lib/IMAP/Tree.php on line 328

Fatal error: Unsupported operand types in 
/srv/webmail.carnet.hr/www/imp/lib/IMAP/Tree.php on line 333

This seems related to new code added in 1.2.7 and happens because 
$names array never gets initialized in case of 0 mailboxes. Patch is 
attached.

Saved Queries