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-04-01 23:05:02 +02:00
committed by Jagoda Ślązak
parent 621eaeeffb
commit 05cbf2908c
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));