$filter_what = str_replace("\\\"", "\"", $filter_what);
$filter_what = str_replace("\"", """, $filter_what);
+ if (($filter_where == 'Header') && (strchr($filter_what,':') == '')) {
+ print ('WARNING! Header filters should be of the format "Header: value"<BR>');
+ $action = 'edit';
+ }
setPref($data_dir, $username, "filter".$theid, $filter_where.",".$filter_what.",".$filter_folder);
$filters[$theid]["where"] = $filter_where;
$filters[$theid]["what"] = $filter_what;
$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>'.
if (isset($filters[$i + 1])) {
echo "<a href=\"options.php?theid=$i&action=move_down\">" . _("Down") . '</a>';
if ($i > 0) {
- echo ' | ';
+ echo ' | ';
}
}
if ($i > 0) {
echo "<a href=\"options.php?theid=$i&action=move_up\">" . _("Up") . '</a>';
}
- echo ']</small></td><td> - ';
+ echo ']</small></td><td>-</td><td>';
printf( _("If <b>%s</b> contains <b>%s</b> then move to <b>%s</b>"), _($filters[$i]['where']), $filters[$i]['what'], $fdr );
echo '</td></tr>';