Make SieveSystemInterpreter.defaultReturnPath and MtaQueueQuota.match optional expressions

This commit is contained in:
Maurus Decimus
2026-06-06 10:55:40 +02:00
parent d26e9b3d4e
commit 89ecee3bea
2 changed files with 7 additions and 2 deletions

View File

@@ -15,6 +15,7 @@ If you are upgrading from v0.16.x, replace the binary (or run `docker pull`). If
- MTA:
- Sub-addressing with external directories returns `550 Mailbox not found`.
- Disabled aliases continue receiving messages.
- Make `SieveSystemInterpreter.defaultReturnPath` and `MtaQueueQuota.match` optional expressions.
## [0.16.7] - 2026-05-28

View File

@@ -27038,7 +27038,9 @@ impl ObjectImpl for MtaQueueQuota {
errors.push(ValidationError::min_items(Property::Key, 1));
}
let value = &self.match_;
value.validate(errors);
if !value.match_.is_empty() || !value.else_.is_empty() {
value.validate(errors);
}
if let Some(value) = &self.messages {
if *value < 1 {
errors.push(ValidationError::min_value(Property::Messages, 1));
@@ -35218,7 +35220,9 @@ impl ObjectImpl for SieveSystemInterpreter {
}
}
let value = &self.default_return_path;
value.validate(errors);
if !value.match_.is_empty() || !value.else_.is_empty() {
value.validate(errors);
}
let value = &self.dkim_sign_domain;
value.validate(errors);
let value = &self.max_cpu_cycles;