for (int i = 0; i < searchValues.length; i++) {
if ( searchField == MessageListFields.SUBJECT ) {
terms[i] = new SubjectTerm( searchValues[i] );
}
else if ( searchField == MessageListFields.FROM ) {
terms[i] = new FromStringTerm( searchValues[i] );
}
else if ( searchField == MessageListFields.TO ) {
terms[i] = new RecipientStringTerm( RecipientType.TO, searchValues[i] );
}
else if ( searchField == MessageListFields.CC ) {