feat: Add experimental option to disable mailboxes (#108)

Signed-off-by: Jagoda Ślązak <jslazak@jslazak.com>
This commit is contained in:
Jagoda Estera Ślązak
2026-08-18 12:21:28 +02:00
committed by missytake
parent 8927fc5c58
commit 7f1521d7cd
4 changed files with 55 additions and 7 deletions
+7
View File
@@ -98,6 +98,13 @@ impl SmtpHandler for IncomingBeforeQueueHandler {
envelope.mail_from = String::new();
}
envelope.rcpt_to = envelope
.rcpt_to
.iter()
.filter(|s| !self.config.is_disabled(s))
.cloned()
.collect();
let mail_encrypted = check_encrypted(&message, false);
log::debug!("mail_encrypted: {mail_encrypted}");
log::debug!("is_securejoin: {}", is_securejoin(&message));