Skip to content
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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

frozen-sky
Copy link

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

@@ -10,9 +10,9 @@ static function setUpBeforeClass(): void
}

/**
* Test vacation_form()
* Test forward_form()
Copy link
Author

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([]);
Copy link
Member

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";
Copy link
Member

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.

@Neustradamus
Copy link

@frozen-sky: Have you progressed on your PR?

@frozen-sky
Copy link
Author

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants