Skip to main content

Name

mail_queue_insert_active

Synopsis

#include "hooks/core/mail_queue_insert_active.h"

| int **mail_queue_insert_active** ( | closure, |   | |   | mq, |   | |   | message); |   |

void * <var class="pdparam">closure</var>; mail_queue * <var class="pdparam">mq</var>; abstract_message * <var class="pdparam">message</var>;

| int **has_core_mail_queue_insert_active_hook** ( | ); |   |

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

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

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

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

| int **call_core_mail_queue_insert_active_hook** ( | mq, |   | |   | message); |   |

mail_queue * <var class="pdparam">mq</var>; abstract_message * <var class="pdparam">message</var>;

Description

When a message is attempted it is removed from the delayed queue and inserted into the active queue for a given domain by invoking this hook. Returning 0 will cause subsequent hooks to not be called. The default hook behavior will find the appropriate active queue within mq for the message based on the message's binding and insert it. If this action is subverted by new callee, then 0 should be returned to avoid a terminal error within Momentum.

Was this page helpful?