mirror of
https://github.com/KumoCorp/kumomta.git
synced 2026-08-19 08:01:07 +00:00
c2444b6266
This commit allows setting a per-message `expires` timestamp via msg:set_scheduling (and thus msg:import_scheduling_header). The expiration takes precedence over max_age; max_age will be ignored for messages that have configured and expiration time. The expiration time is independent of the other scheduling restrictions.
609 B
609 B
max_age
Limits how long a message can remain in the queue.
The default value is "7 days".
kumo.on('get_queue_config', function(domain, tenant, campaign, routing_domain)
return kumo.make_queue_config {
-- Age out messages after being in the queue for 20 minutes
max_age = '20 minutes',
}
end)
!!! note
If you are using message:set_scheduling()
to configure a custom expires timestamp on a per-message basis, then
max_age will be ignored for those messages and only your expires timestamp
will be considered for expiration.