mirror of
https://github.com/chatmail/relay.git
synced 2026-09-19 13:50:09 +00:00
feat: Add experimental option to disable mailboxes (#108)
Signed-off-by: Jagoda Ślązak <jslazak@jslazak.com>
This commit is contained in:
committed by
Jagoda Ślązak
parent
621eaeeffb
commit
05cbf2908c
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user