Skip to content

Commit

Permalink
Merge pull request #1139 from Shadow243/add-keep-copy-on-redirect-fil…
Browse files Browse the repository at this point in the history
…ter-action

Add copy param to RedirectFilterAction & correct imap server marges o…
  • Loading branch information
Shadow243 authored Aug 3, 2024
2 parents 50dbc2a + 7774aa0 commit fa4880b
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 fa4880b

Please sign in to comment.