send_notification

March 26, 2020 Contributors

Name

send_notification — Allows you to override the MDN generation process that is determined by the DSN module.

Synopsis

#include "hooks/delay_dsn/send_notification.h"

| int **delay_dsn_send_notification** ( | closure, |   |
|   | msg); |   |

void * <var class="pdparam">closure</var>;
ec_message * <var class="pdparam">msg</var>;

Description

This hook allows you to override the MDN generation process that is determined by the DSN module. This hook is an ideal place to generate completely custom DSNs in policy.

Parameters

closure

A pointer to the closure.

msg

The ec_message. For a description of this data type see ec_message.

Return Values

If your registered hook returns DELAY_DSN_SEND_NOTIFICATION_OK then the internal default MDN generation will be bypassed.

Threading

This hook will be invoked in the Scheduler thread.

See Also

generate_delay_dsn, next_delay_dsn, and the delay_dsn Module.