Skip to content

Commit

Permalink
Bug #13074: Make sure mailbox is subscribed before adding to tree
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Mar 25, 2014
1 parent 8c039ed commit f438afb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions imp/lib/Mailbox.php
Expand Up @@ -783,15 +783,15 @@ public function create(array $opts = array())

$notification->push(sprintf(_("The mailbox \"%s\" was successfully created."), $this->display), 'horde.success');

/* Update the mailbox tree. */
$injector->getInstance('IMP_Ftree')->insert($this->_mbox);

/* Subscribe, if requested. */
if ((!isset($opts['subscribe']) && $prefs->getValue('subscribe')) ||
!empty($opts['subscribe'])) {
$this->subscribe(true);
}

/* Update the mailbox tree. */
$injector->getInstance('IMP_Ftree')->insert($this->_mbox);

return true;
}

Expand Down

0 comments on commit f438afb

Please sign in to comment.