| 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 (7673 days ago) |
| Due | |
| Updated | 10/31/2004 (7666 days ago) |
| Assigned | |
| Resolved | 10/31/2004 (7666 days ago) |
| Github Issue Link | |
| Github Pull Request | |
| Milestone | |
| Patch | No |
State ⇒ Resolved
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ [patch] IMP folder list in sidebar doesn't recognize 'subscribe' preference
Queue ⇒ IMP
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();