keyword filtering must be done as flag search for

This commit is contained in:
Klaus Leithoff 2014-01-23 14:46:57 +00:00
parent 7c4abc8da1
commit fa2993bff3

View File

@ -1590,12 +1590,15 @@ class mail_bo
case 'FLAGGED':
case 'RECENT':
case 'SEEN':
$imapFilter->flag($criteria, $set=true);
$queryValid = true;
break;
case 'KEYWORD1':
case 'KEYWORD2':
case 'KEYWORD3':
case 'KEYWORD4':
case 'KEYWORD5':
$imapFilter->flag($criteria, $set=true);
$imapFilter->flag(str_ireplace('KEYWORD','$LABEL',$criteria), $set=true);
$queryValid = true;
break;
case 'NEW':