Skip to content

Commit

Permalink
Add copy param to RedirectFilterAction
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadow243 committed Aug 3, 2024
1 parent 172c5f9 commit 7774aa0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/sievefilters/modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,14 @@ public function process() {
new \PhpSieveManager\Filters\Actions\RedirectFilterAction(['address' => $action->value])
);
}
if ($action->action == 'forward') {
$custom_condition->addAction(
new \PhpSieveManager\Filters\Actions\RedirectFilterAction(['address' => $action->value])
);
$custom_condition->addAction(
new \PhpSieveManager\Filters\Actions\KeepFilterAction()
);
}
if ($action->action == 'flag') {
$custom_condition->addAction(
new \PhpSieveManager\Filters\Actions\FlagFilterAction(['flags' => [$action->value]])
Expand Down
7 changes: 7 additions & 0 deletions modules/sievefilters/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,13 @@ var hm_sieve_possible_actions = function() {
type: 'string',
extra_field: false
},
{
name: 'forward',
description: 'Forward',
placeholder: '[email protected]',
type: 'string',
extra_field: false
},
{
name: 'reject',
description: 'Reject',
Expand Down

0 comments on commit 7774aa0

Please sign in to comment.