|
|
@ -69,7 +69,7 @@ else if (preg_match("/^subject:.*/i", $str))
|
|
|
|
else if (preg_match("/^body:.*/i", $str))
|
|
|
|
else if (preg_match("/^body:.*/i", $str))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
list(,$srch) = explode(":", $str);
|
|
|
|
list(,$srch) = explode(":", $str);
|
|
|
|
$subject['text'] = "TEXT";
|
|
|
|
$subject['body'] = "BODY";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (strlen(trim($str)))
|
|
|
|
else if (strlen(trim($str)))
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -81,7 +81,7 @@ else if (strlen(trim($str)))
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
$subject[$header] = 'HEADER '.strtoupper($header);
|
|
|
|
$subject[$header] = ($header != 'body' ? 'HEADER ' : '') . strtoupper($header);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -89,7 +89,8 @@ else if (strlen(trim($str)))
|
|
|
|
$search_mods = $RCMAIL->config->get('search_mods', $SEARCH_MODS_DEFAULT);
|
|
|
|
$search_mods = $RCMAIL->config->get('search_mods', $SEARCH_MODS_DEFAULT);
|
|
|
|
$search_mods[$mbox] = array_fill_keys(array_keys($subject), 1);
|
|
|
|
$search_mods[$mbox] = array_fill_keys(array_keys($subject), 1);
|
|
|
|
$RCMAIL->user->save_prefs(array('search_mods' => $search_mods));
|
|
|
|
$RCMAIL->user->save_prefs(array('search_mods' => $search_mods));
|
|
|
|
} else {
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
// search in subject by default
|
|
|
|
// search in subject by default
|
|
|
|
$subject['subject'] = 'HEADER SUBJECT';
|
|
|
|
$subject['subject'] = 'HEADER SUBJECT';
|
|
|
|
}
|
|
|
|
}
|
|
|
|