Imported empty headers/parts rules from Rspamd

This commit is contained in:
mdecimus
2023-10-27 11:02:51 +02:00
parent 2938b98e18
commit 795ad97553
10 changed files with 115 additions and 53 deletions

View File

@@ -212,7 +212,12 @@ async fn antispam() {
)
.replace("%CFG_PATH%", base_path.as_path().to_str().unwrap());
let base_path = base_path.join("scripts");
let script_config = fs::read_to_string(base_path.join("config.sieve")).unwrap();
let script_config = fs::read_to_string(base_path.join("config.sieve"))
.unwrap()
.replace(
"AUTOLEARN_SPAM_HAM_BALANCE\" \"0.9",
"AUTOLEARN_SPAM_HAM_BALANCE\" \"0.0",
);
let script_prelude = fs::read_to_string(base_path.join("prelude.sieve")).unwrap();
let mut all_scripts = script_config.clone() + "\n" + script_prelude.as_str();
for test_name in tests {