authenticated_as variable not usable for must-match-sender (fixes #372)

This commit is contained in:
mdecimus
2024-05-06 14:23:52 +02:00
parent 5b236e00ae
commit 00d74abaed

View File

@@ -148,6 +148,12 @@ impl<T: SessionStream> Session<T> {
.eval_if(&ec.vrfy, self)
.await
.unwrap_or(false);
self.params.auth_match_sender = self
.core
.core
.eval_if(&self.core.core.smtp.session.auth.must_match_sender, self)
.await
.unwrap_or(true);
}
pub async fn eval_rcpt_params(&mut self) {