Do not send empty messages generated by trusted Sieve scripts

This commit is contained in:
mdecimus 2024-05-23 15:20:47 +02:00
parent ce1c12b8ba
commit 7251908aad

View file

@ -265,7 +265,7 @@ impl SMTP {
} else {
instance.message().raw_message().into()
};
if let Some(raw_message) = raw_message {
if let Some(raw_message) = raw_message.filter(|m| !m.is_empty()) {
let headers = if !params.sign.is_empty() {
let mut headers = Vec::new();