git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2685
7612ce4b-ef26-0410-bec9-
ea0150e637f0
} else {
$search_str = "SEARCH CHARSET US-ASCII ALL ";
}
+ if ($where == "Header") {
+ $what = explode(':', $what);
+ $where = trim($where . ' ' . $what[0]);
+ $what = addslashes(trim($what[1]));
+ }
$search_str .= $where . ' {' . strlen($what) . "}\r\n" . $what . "\r\n";
fputs ($imap, "a001 $search_str");
$sel = (($L && $filters[$theid]['where'] == 'Subject')?'selected':'');
echo "<option value=\"Subject\" $sel>" . _ ("Subject") . '</option>';
+ $sel = (($L && $filters[$theid]['where'] == 'Header')?'selected':'');
+ echo "<option value=\"Header\" $sel>" . _ ("Header") . '</option>';
+
echo '</select>'.
'</td>'.
'</tr>'.