When an autoreply is deleted, the underlying message file is deleted too.
---- Changes since 1.420 ----
Autoreply messages starting with <html> or <body> will now be sent using the text/html MIME type.
+---- Changes since 1.430 ----
+Quick autoreply and forward setup pages now only show un-conditional rules.
# Get the autoreply filter, if any
@filters = &list_filters();
-($filter) = grep { $_->{'actionreply'} } @filters;
+($filter) = grep { $_->{'actionreply'} && $_->{'nocond'} } @filters;
$dis = !$filter;
print &ui_form_start("save_auto.cgi", "post");
# Get the forwarding filter, if any
@filters = &list_filters();
-($filter) = grep { $_->{'actiontype'} eq '!' } @filters;
+($filter) = grep { $_->{'actiontype'} eq '!' && $_->{'nocond'} } @filters;
$dis = !$filter;
print &ui_form_start("save_forward.cgi", "post");
# Finally create the simple object
local $simple = { 'condtype' => $condtype,
'cond' => $cond,
+ 'nocond' => !scalar(@{$r->{'conds'}}),
'body' => $flags{'B'},
'continue' => $flags{'c'},
'actiontype' => $r->{'type'},
# Find existing autoreply filter object
&lock_file($procmail::procmailrc);
@filters = &list_filters();
-($old) = grep { $_->{'actionreply'} } @filters;
+($old) = grep { $_->{'actionreply'} && $_->{'nocond'} } @filters;
$filter = $old;
if ($filter && !$in{'enabled'}) {
# Find existing forwarding filter object
&lock_file($procmail::procmailrc);
@filters = &list_filters();
-($old) = grep { $_->{'actiontype'} eq '!' } @filters;
+($old) = grep { $_->{'actiontype'} eq '!' && $_->{'nocond'} } @filters;
$filter = $old;
if ($filter && !$in{'enabled'}) {