(agg piguard.Aggregate)
| 151 | } |
| 152 | |
| 153 | func scanReason(agg piguard.Aggregate) string { |
| 154 | if len(agg.Categories) == 0 { |
| 155 | return "content scan flagged the message" |
| 156 | } |
| 157 | return "content scan: " + agg.Categories[0].Name |
| 158 | } |
| 159 | |
| 160 | // writeProtectionEvents appends the audit rows best-effort. Deterministic ids + |
| 161 | // ON CONFLICT DO NOTHING make an MTA-retried re-screen idempotent, so writing |