$filters[$i]['what'], $filters[$i]['folder'], $filters_user_scan, $expunge);
$expunge = filter_search_and_delete($imap_stream, 'CC',
$filters[$i]['what'], $filters[$i]['folder'], $filters_user_scan, $expunge);
+ } else if ($filters[$i]['where'] == 'Header and Body') {
+ $expunge = filter_search_and_delete($imap_stream, 'TEXT',
+ $filters[$i]['what'], $filters[$i]['folder'], $filters_user_scan, $expunge);
+ } else if ($filters[$i]['where'] == 'Message Body') {
+ $expunge = filter_search_and_delete($imap_stream, 'BODY',
+ $filters[$i]['what'], $filters[$i]['folder'], $filters_user_scan, $expunge);
} else {
/*
* If it's a normal TO, CC, SUBJECT, or FROM, then handle it
$sel = (($L && $filters[$theid]['where'] == 'Subject')?' selected="selected"':'');
echo "<option value=\"Subject\"$sel>" . _("Subject") . '</option>';
+ $sel = (($L && $filters[$theid]['where'] == 'Message Body')?' selected="selected"':'');
+ echo "<option value=\"Message Body\"$sel>" . _("Message Body") . '</option>';
+
+ $sel = (($L && $filters[$theid]['where'] == 'Header and Body')?' selected="selected"':'');
+ echo "<option value=\"Header and Body\"$sel>" . _("Header and Body") . '</option>';
+
$sel = (($L && $filters[$theid]['where'] == 'Header')?' selected="selected"':'');
echo "<option value=\"Header\"$sel>" . _("Header") . '</option>';