Add rcpt-domain key to rcpt.relay rule evaluation

This commit is contained in:
mdecimus
2023-08-30 16:10:40 +02:00
parent 5b88a03e92
commit 4238c1409e
13 changed files with 198 additions and 34 deletions

View File

@@ -25,6 +25,7 @@ pub mod exec;
pub mod query;
use ahash::AHashMap;
use mail_parser::Message;
use sieve::{compiler::Number, Compiler, Input, PluginArgument};
use tokio::runtime::Handle;
@@ -38,6 +39,7 @@ pub struct PluginContext<'x> {
pub handle: &'x Handle,
pub core: &'x SMTP,
pub data: &'x mut AHashMap<String, String>,
pub message: &'x Message<'x>,
pub arguments: Vec<PluginArgument<String, Number>>,
}