Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

Commit 9610e28

Browse files
committed
Fix: sender domain not available for evaluation.
1 parent 65a0bfb commit 9610e28

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/core/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ pub struct SessionData {
186186
pub dnsbl_error: Option<Vec<u8>>,
187187
}
188188

189+
#[derive(Clone)]
189190
pub struct SessionAddress {
190191
pub address: String,
191192
pub address_lcase: String,

src/inbound/data.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ impl<T: AsyncWrite + AsyncRead + IsTls + Unpin> Session<T> {
397397
}
398398

399399
// Build message
400-
let mail_from = self.data.mail_from.take().unwrap();
400+
let mail_from = self.data.mail_from.clone().unwrap();
401401
let rcpt_to = std::mem::take(&mut self.data.rcpt_to);
402402
let mut message = self.build_message(mail_from, rcpt_to).await;
403403

0 commit comments

Comments
 (0)