Skip to Content
ReferenceActionsMAIL-LATENCY

Mail Latency Action

The mail-latency action reads messages from a Maildir, computes the delivery latency of each one from its Received headers, and writes the result as a CSV file.

Basic Syntax

- name: Measure delivery latency uses: mail-latency with: mail_dir: "/var/mail/probe/new" output_dir: "./reports" test: res.code == 0

Parameters

ParameterTypeRequiredDescription
mail_dirStringYesDirectory holding the messages to measure
output_dirStringYesDirectory the CSV file is written to

Response Object

FieldTypeDescription
res.output_fileStringPath of the written CSV file, named mail-latency.<timestamp>.csv
res.statusInteger0 on success
rtStringTime spent measuring
Updated at