Browse Source

Use action_bounce instead of action_drop_with_warning in example filter

master
Dianne Skoll 3 months ago
parent
commit
f780f99e74
Signed by: dianne GPG Key ID: 685A5A5E511D30E2
  1. 2
      examples/mailmunge-filter.pl.example

2
examples/mailmunge-filter.pl.example

@ -49,7 +49,7 @@ sub filter
my $re = '\.' . $bad_exts . '\.*$';
if ($extension =~ /$re/i) {
$self->action_drop_with_warning($ctx, "An attachment named '$fname' was deleted as it constitutes a hazard");
$self->action_bounce($ctx, "We do not accept attachments called '$fname'");
}
}

Loading…
Cancel
Save