mirror of
https://github.com/mailscope/kumomta.git
synced 2026-08-19 10:58:17 +00:00
fedd2959b6
It is common to want to express that incoming reports should be logged, but not relayed. This commit facilitates that by expanding `log_arf` and `log_oob` to allow more than just a simple boolean value. We now support both LogThenRelay and LogThenDrop as dispositions for an incoming report, as well as Ignore to not care about the report content. For the LogThenDrop case we'll log only the incoming OOB or Feedback record to the logs and then discard the incoming message. For LogThenRelay we'll log the incoming OOB/Feedback report as well as enqueue the message and log a Reception and, subsequently, records for its delivery attempts. The previously supported boolean values are mapped to `Ignore` (false) and `LogThenRelay` (true), respectively: their behavior is the same as in prior releases. The integration test and smtp server tracing infra has been enhanced a bit to support extracting these new disposition states from the tracer during the integration test.