- make searching aware of 'skip_deleted'

release-0.6
alecpl 16 years ago
parent ec5d2e78a4
commit 384d83adb9

@ -1006,6 +1006,9 @@ class rcube_imap
*/
function _search_index($mailbox, $criteria='ALL', $charset=NULL, $sort_field=NULL)
{
if ($this->skip_deleted && !preg_match('/UNDELETED/', $criteria))
$criteria = 'UNDELETED '.$criteria;
if ($sort_field && $this->get_capability('sort'))
{
$charset = $charset ? $charset : $this->default_charset;

Loading…
Cancel
Save