-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Managesieve plugin: add spam settings engine #9074
base: master
Are you sure you want to change the base?
Managesieve plugin: add spam settings engine #9074
Conversation
@@ -10,9 +10,9 @@ static function setUpBeforeClass(): void | |||
} | |||
|
|||
/** | |||
* Test vacation_form() | |||
* Test forward_form() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When making the test, i saw this was incorrect labelled in the Forward test, as such corrected this. Its not related to the goal of this PR
|
||
setProperty($spam, 'spam', ['list' => []]); | ||
|
||
$result = $spam->forward_form([]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
->spam_form().
} | ||
|
||
$rule['type'] = 'if'; | ||
$rule['name'] = "Spam filter settings"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be localized.
@frozen-sky: Have you progressed on your PR? |
Thank you for reminding me. The local version is a bit progressed but not finalized yet. I will try to push a bit on it next week |
This PR adds in a similar way as the out-of-office and forward engines, the option to render a more sophisticated/specific form to set spam filtering values. It allows to configure enable/disable spam-filtering and adjust the threshold when filtering should happen.
There is an option to add ACL Allow list entries, which will allow emails to skip the filtering action.
Configuration defaults and options are added to the managesieve configuration example.
As for localization: It is unknown to me how RoundCube works with localizations. For now I did not touch the localizations except English (US). I can do an effort to fill in most translations, however, I do not speak all the languages in the table