log_delivery_v1
Name
log_delivery_v1 — Register a function with this hook whenever a delivery event should be logged.
Synopsis
#include "hooks/core/log_delivery_v1.h"
| void **core_log_delivery_v1** ( | closure, | |
| | msg, | |
| | dr, | |
| | now, | |
| | note, | |
| | note_len); | |
void * <var class="pdparam">closure</var>;
ec_message * <var class="pdparam">msg</var>;
domain_record * <var class="pdparam">dr</var>;
struct timeval * <var class="pdparam">now</var>;
const char * <var class="pdparam">note</var>;
int <var class="pdparam">note_len</var>;
Description
Register a function with this hook whenever a delivery event should be logged. This hook has a signature that closely mirrors the signature defined for the log_delivery callback in a logging_infrastructure_1 struct. For documentation of this data structure see “logging_infrastructure_1”.
- closure
-
A pointer to the closure function.
- msg
-
A pointer to an ec_message struct. For documentation of this data structure see “ec_message”
- dr
-
A pointer to a domain_record struct. For documentation of this data structure see “domain_record”
- now
-
A timeval struct.
- note
-
Contains the Delivery Status Notification (DSN) from the remote server. If this is NULL, then you need to fetch the note from the message with ec_message_get_code().
- note_len
-
The length of the
notestring, in bytes.
This hook returns void.
This hook will be called in any thread.