HTTP remote lists and Spam filter improvements

This commit is contained in:
mdecimus
2024-12-22 19:35:22 +01:00
parent d1944b8a6f
commit 7cca6fc298
59 changed files with 743 additions and 808 deletions

View File

@@ -102,14 +102,11 @@ impl RunScript for Server {
if let Some(store) = self.core.storage.lookups.get(&list) {
for value in &values {
if let Ok(true) = store
.key_exists(
if !matches!(match_as, MatchAs::Lowercase) {
value.clone()
} else {
value.to_lowercase()
}
.into_bytes(),
)
.key_exists(if !matches!(match_as, MatchAs::Lowercase) {
value.clone()
} else {
value.to_lowercase()
})
.await
{
input = true.into();