Skip to content

Commit

Permalink
authenticated_as variable not usable for must-match-sender (fixes #372)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdecimus committed May 6, 2024
1 parent 5b236e0 commit 00d74ab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/smtp/src/core/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 00d74ab

Please sign in to comment.