Include queueId in MTA Hooks (fixes #708)

This commit is contained in:
mdecimus
2024-08-23 18:41:10 +02:00
parent 0186c215a5
commit 18a24f7220
8 changed files with 18 additions and 10 deletions

View File

@@ -409,7 +409,10 @@ async fn antispam() {
// Run script
let core_ = core.clone();
let script = script.clone();
match core_.run_script(script, params, 0).await {
match core_
.run_script("test".to_string(), script, params, 0)
.await
{
ScriptResult::Accept { modifications } => {
if modifications.len() != expected_headers.len() {
panic!(

View File

@@ -177,7 +177,7 @@ async fn sieve_scripts() {
.with_envelope(&core.core, &session, 0)
.await;
let core_ = core.clone();
match core_.run_script(script, params, 0).await {
match core_.run_script(name.to_string(), script, params, 0).await {
ScriptResult::Accept { .. } => (),
ScriptResult::Reject(message) => panic!("{}", message),
err => {