6.0.0-alpha12
6/7/25

[#9600] Disabling Virtual Inbox in Preferences not working
Summary Disabling Virtual Inbox in Preferences not working
Queue IMP
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester hordetest (at) trash-mail (dot) com
Created 02/26/2011 (5215 days ago)
Due
Updated 01/26/2017 (3054 days ago)
Assigned 03/04/2011 (5209 days ago)
Resolved 03/04/2011 (5209 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
03/04/2011 05:43:53 PM Git Commit Comment #8 Reply to this comment
Changes have been made in Git for this ticket:

Bug #9600: Fix variable scope

  1 files changed, 4 insertions(+), 4 deletions(-)
http://git.horde.org/horde-git/-/commit/1f2728072340fcc4263c0f77bc1e7e1c9ea5ced9
03/04/2011 05:22:22 PM Michael Slusarz Comment #7
State ⇒ Resolved
Reply to this comment
I can confirm the issue, as well as the fact that this change fixes 
it. Though if this fix is correct, I don't think we even need the 
conditional to begin with. I admit I don't fully understand how we 
*don't* get infinite recursion here, but my guess is that it's 
because the IMP_Imap_Tree object is already cached by the injector 
even though IMP_Imap_Tree::init() hasn't completed, so when 
IMP_Search::setVFolders() is called, the 
IMP_Imap_Tree::updateVFolders() call succeeds?
The problem came with my addition of the session key check for treeob. 
  I misread the code and thought that this key was not set until after 
the first session access.  However, it is created before we even 
initialize the imaptree object the first time.  This has been fixed 
(although strangely enough, this did not affect me).
03/04/2011 05:22:16 PM Git Commit Comment #6 Reply to this comment
Changes have been made in Git for this ticket:

Bug #9600: Fix determination if imaptree object has been initialized

  1 files changed, 11 insertions(+), 2 deletions(-)
http://git.horde.org/horde-git/-/commit/c5e1618dd1a4e2cf055d70de869c9d6fc4572f94
03/04/2011 05:18:28 PM Michael Slusarz Comment #5 Reply to this comment
Typo ?

--  if (IMP_Factory_Imaptree::initialized()) {
++ if (!IMP_Factory_Imaptree::initialized()) {
Definitely no.  We only want to update the tree object *IF* it has 
already been created.  We don't need to update if has not yet been 
created (virtual folders will automatically be added the first time 
the tree object is created).

03/04/2011 03:55:22 PM Michael Rubinsky Comment #4
State ⇒ Assigned
Reply to this comment
I can confirm the issue, as well as the fact that this change fixes 
it. Though if this fix is correct, I don't think we even need the 
conditional to begin with. I admit I don't fully understand how we 
*don't* get infinite recursion here, but my guess is that it's because 
the IMP_Imap_Tree object is already cached by the injector even though 
IMP_Imap_Tree::init() hasn't completed, so when 
IMP_Search::setVFolders() is called, the 
IMP_Imap_Tree::updateVFolders() call succeeds?

Either way, I'll leave this for Michael to fix :)
03/04/2011 03:16:29 PM rsalmon (at) mbpgroup (dot) com Comment #3 Reply to this comment
Changes have been made in Git for this ticket:

Bug #9600: Fix disabling virtual folders

http://git.horde.org/horde-git/-/commit/23fdbbab5d1dd4529405e87c7afbf68b55d046ea
with this commit, IMP runs indefinitely over here and never get passed 
the following call
$injector->getInstance('IMP_Imap_Tree')->updateVFolders($vfolders);


Typo ?

--  if (IMP_Factory_Imaptree::initialized()) {
++ if (!IMP_Factory_Imaptree::initialized()) {


03/04/2011 06:52:17 AM Michael Slusarz Assigned to Michael Slusarz
State ⇒ Resolved
 
03/04/2011 06:51:29 AM Git Commit Comment #2 Reply to this comment
Changes have been made in Git for this ticket:

Bug #9600: Fix disabling virtual folders

http://git.horde.org/horde-git/-/commit/23fdbbab5d1dd4529405e87c7afbf68b55d046ea
02/26/2011 11:05:01 AM hordetest (at) trash-mail (dot) com Comment #1
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Queue ⇒ IMP
Summary ⇒ Disabling Virtual Inbox in Preferences not working
Type ⇒ Bug
Priority ⇒ 1. Low
Reply to this comment
I can't disable the virtual inbox. Unchecking the virtual inbox in the 
preferences has no effect. I don't see any usage for the virtual inbox 
either.

Saved Queries