Submissions say when DLP held the message
ci / fork-checks (pull_request) Successful in 44s
ci / build (pull_request) Successful in 4m44s

An EmailSubmission create's response carries inbuxa:held (dlp-and-mail-flow-rules spec, §2.6, §4): true when the message is held for review, false otherwise, so the webmail can say so at once. A sender can't read the review queue, and a held message's sendAt is its real send time, not the century-off release, so this is how the sender learns. mail_rules_tests checks both values.
This commit is contained in:
2026-09-28 18:48:39 -07:00
parent f4061f542c
commit b59eebf1e7
3 changed files with 16 additions and 1 deletions
+2
View File
@@ -312,6 +312,7 @@ pub async fn dlp(test: &mut TestServer) {
response["created"].get("s").is_some(),
"no rules: {response}"
);
assert_eq!(response["created"]["s"]["inbuxa:held"], false, "{response}");
// A warning: refused with the rule and its notice, then sent with a reason
let (_, response) = call(
@@ -833,6 +834,7 @@ pub async fn hold(test: &mut TestServer) {
.as_str()
.unwrap_or_else(|| panic!("held, not refused: {response}"))
.to_string();
assert_eq!(response["created"]["s"]["inbuxa:held"], true, "{response}");
let (_, response) = call(&admin, "inbuxa:HeldMessage/get", json!({"ids": null})).await;
let list = response["list"]
.as_array()