Skip to content

Commit

Permalink
Bug #13220
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Jun 10, 2014
1 parent e0288fd commit 2b8e776
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion imp/lib/Ftree/Account/Imap.php
Expand Up @@ -45,6 +45,7 @@ public function getList($query = null)
global $prefs;

$imp_imap = $this->imp_imap;
$lmquery = Horde_Imap_Client::MBOX_SUBSCRIBED_EXISTS;
$out = $searches = array();
$unsub = false;

Expand Down Expand Up @@ -80,6 +81,7 @@ public function getList($query = null)

$searches[] = 'INBOX';
} elseif ($query & self::UNSUB) {
$lmquery = Horde_Imap_Client::MBOX_UNSUBSCRIBED;
$unsub = true;
}

Expand All @@ -88,9 +90,10 @@ public function getList($query = null)
}
} else {
$searches[] = $query;
$lmquery = Horde_Imap_Client::MBOX_ALL;
}

$res = $imp_imap->listMailboxes($searches, $unsub ? Horde_Imap_Client::MBOX_UNSUBSCRIBED : Horde_Imap_Client::MBOX_SUBSCRIBED_EXISTS, array(
$res = $imp_imap->listMailboxes($searches, $lmquery, array(
'attributes' => true,
'delimiter' => true,
'sort' => true
Expand Down

0 comments on commit 2b8e776

Please sign in to comment.