log_reception_v1
Name
log_reception_v1 — Register a function with this hook whenever a reception event should be logged.
Synopsis
#include "hooks/core/log_reception_v1.h"
| void **log_reception_v1** ( | closure, | |
| | ac, | |
| | msg, | |
| | now, | |
| | note, | |
| | note_len); | |
void * <var class="pdparam">closure</var>;
accept_construct * <var class="pdparam">ac</var>;
ec_message * <var class="pdparam">msg</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 reception event should be logged. This hook has a signature that closely mirrors the signature defined for the log_reception callback in a logging_infrastructure_1 struct. For documentation of this data structure see “logging_infrastructure_1”.
- closure
-
A pointer to the closure function.
- ac
-
The
accept_constructstruct. For documentation of this data structure see “accept_construct” - msg
-
A pointer to an ec_message struct. For documentation of this data structure see “ec_message”
- now
-
A timeval struct.
- note
-
Contains the Delivery Status Notification (DSN) from the remote server.
- note_len
-
The length of the
notestring, in bytes.
This hook returns void.
This hook will be called in any thread.