Spam filter performance and accuracy improvements (part 5)

This commit is contained in:
mdecimus
2025-12-04 17:46:38 +01:00
parent 50dce48a85
commit c467ce07f1
34 changed files with 967 additions and 484 deletions

View File

@@ -87,6 +87,7 @@ impl<T: SessionStream> Session<T> {
.map(|r| r.address_lcase.as_str())
.collect(),
is_test: false,
is_train: false,
}
}
}

View File

@@ -28,7 +28,7 @@ use store::write::{
QueueClass, ValueClass, now,
};
use store::{Deserialize, IterateParams, Serialize, U64_LEN, ValueKey};
use trc::{AddContext, ServerEvent};
use trc::{AddContext, ServerEvent, SpamEvent};
use types::blob_hash::BlobHash;
use utils::DomainPart;
@@ -457,6 +457,13 @@ impl MessageWrapper {
},
vec![1, 1],
);
trc::event!(
Spam(SpamEvent::TrainSampleAdded),
Details = "spam",
Expires = trc::Value::Timestamp(hold_period),
SpanId = self.span_id,
);
}
batch