Skip to content

Commit

Permalink
Do not send empty messages generated by trusted Sieve scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
mdecimus committed May 23, 2024
1 parent ce1c12b commit 7251908
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/smtp/src/scripts/event_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 7251908

Please sign in to comment.