pre_mail_queue_maintain_domain

March 26, 2020

Name

pre_mail_queue_maintain_domain

Synopsis

#include "hooks/core/pre_mail_queue_maintain_domain.h"

| void **pre_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_pre_mail_queue_maintain_domain_hook** ( | ); |   |

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

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

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

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

| void **call_core_pre_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

This hook is called as a first step of queue maintenance for a domain.

In the event that a domain has messages with next delivery attempts at or before the current time, then queue maintenance will be performed.

dr is the domain in question. now is the current time from the perspective of the internal scheduler. rv is the return value of the parent function — it is not used or respected by the caller and exists to maintain call likeness to post_mail_queue_maintain_domain.