6.0.0-beta1
7/4/25

[#720] [patch] IMP folder list in sidebar doesn't recognize 'subscribe' preference
Summary [patch] IMP folder list in sidebar doesn't recognize 'subscribe' preference
Queue IMP
Queue Version HEAD
Type Bug
State Resolved
Priority 1. Low
Owners
Requester seifert (at) everybody (dot) org
Created 10/24/2004 (7558 days ago)
Due
Updated 10/31/2004 (7551 days ago)
Assigned
Resolved 10/31/2004 (7551 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
10/31/2004 03:14:59 AM Chuck Hagenbuch Comment #2
State ⇒ Resolved
Reply to this comment
Patch applied to CVS - thanks!
10/24/2004 03:11:48 PM seifert (at) everybody (dot) org Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ [patch] IMP folder list in sidebar doesn't recognize 'subscribe' preference
Queue ⇒ IMP
Reply to this comment
To reproduce:



1) Use a mail inbox with at least one unsubscribed folder.

2) In Imp, under the Server and Folder configuration, uncheck the 'Use 
IMAP folder subscriptions?' option.

3) Exit and re-login to Horde.



The unsubscribed folder will show up everywhere in Imp except for the 
sidebar menu.





The following patch for imp/lib/Block/tree_folders.php fixes this 
issue, similar to the method employed by folders.php.



*** tree_folders.php        23 Oct 2004 06:20:06 -0500        1.16

--- tree_folders.php        24 Oct 2004 10:03:13 -0500

***************

*** 48,54 ****

           $name_url = 
Util::addParameter(Horde::applicationUrl('mailbox.php'), 
'no_newmail_popup', 1);



           /* Initialize the IMP_Tree object. */

!         $imptree = &IMP_Tree::singleton(true, 
$_SESSION['imp']['showunsub'], 'imp_block');



           /* Start iterating through the list of mailboxes, 
displaying them. */

           $mailbox = $imptree->reset();

--- 48,55 ----

           $name_url = 
Util::addParameter(Horde::applicationUrl('mailbox.php'), 
'no_newmail_popup', 1);



           /* Initialize the IMP_Tree object. */

!         $showAll = (!$prefs->getValue('subscribe') || 
$_SESSION['imp']['showunsub']);

!         $imptree = &IMP_Tree::singleton(true, $showAll, 'imp_block');



           /* Start iterating through the list of mailboxes, 
displaying them. */

           $mailbox = $imptree->reset();


Saved Queries