STARTLS optional fix + Sieve functions

This commit is contained in:
mdecimus
2023-09-01 14:41:58 +02:00
parent 0e3a226d9f
commit 3fa5c769bd
14 changed files with 641 additions and 211 deletions

View File

@@ -21,6 +21,7 @@
* for more details.
*/
pub mod detect_lang;
pub mod exec;
pub mod query;
@@ -43,8 +44,9 @@ pub struct PluginContext<'x> {
pub arguments: Vec<PluginArgument<String, Number>>,
}
const PLUGINS_EXEC: [ExecPluginFnc; 2] = [query::exec, exec::exec];
const PLUGINS_REGISTER: [RegisterPluginFnc; 2] = [query::register, exec::register];
const PLUGINS_EXEC: [ExecPluginFnc; 3] = [query::exec, exec::exec, detect_lang::exec];
const PLUGINS_REGISTER: [RegisterPluginFnc; 3] =
[query::register, exec::register, detect_lang::register];
pub trait RegisterSievePlugins {
fn register_plugins(self) -> Self;