(agg piguard.Aggregate)
| 250 | } |
| 251 | |
| 252 | func scanReasonOutbound(agg piguard.Aggregate) string { |
| 253 | if len(agg.Categories) == 0 { |
| 254 | return "content scan flagged the message" |
| 255 | } |
| 256 | return "content scan: " + agg.Categories[0].Name |
| 257 | } |
| 258 | |
| 259 | // writeProtectionEvents appends the audit rows best-effort (deterministic ids make |
| 260 | // it idempotent, so writing outside any message tx is safe). |