mail_queue_maintain_domain

March 26, 2020

Name

mail_queue_maintain_domain

Synopsis

#include "hooks/core/mail_queue_maintain_domain.h"

| void **mail_queue_maintain_domain** ( | closure, |   |
|   | dr, |   |
|   | now, |   |
|   | rv); |   |

void * <var class="pdparam">closure</var>;
domain_record * <var class="pdparam">dr</var>;
struct timeval * <var class="pdparam">now</var>;
int * <var class="pdparam">rv</var>;

| int **has_core_mail_queue_maintain_domain_hook** ( | ); |   |

| void **register_core_mail_queue_maintain_domain_hook_first** ( | hook, |   |
|   | closure); |   |

ec_hook_core_mail_queue_maintain_domain_func_t <var class="pdparam">hook</var>;
void *<var class="pdparam">closure</var>;

| void **register_core_mail_queue_maintain_domain_hook_last** ( | hook, |   |
|   | closure); |   |

ec_hook_core_mail_queue_maintain_domain_func_t <var class="pdparam">hook</var>;
void *<var class="pdparam">closure</var>;

| void **call_core_mail_queue_maintain_domain_hook** ( | dr, |   |
|   | now, |   |
|   | rv); |   |

domain_record * <var class="pdparam">dr</var>;
struct timeval * <var class="pdparam">now</var>;
int * <var class="pdparam">rv</var>;

Description

By registering a function for this hook, Momentum’s internal mail_queue_maintain_domain function is disabled and replaced by calls to the functions registered.

This function is responsible for putting into action any connections necessary for the delivery of messages in the active queue for the domain dr across all MultiVIP™ bindings. The number of total connections established should be placed in *rv.