Skip to main content

Name

generate_bounces

Synopsis

#include "hooks/core/generate_bounces.h"

| int **generate_bounces** ( | closure, |   | |   | mess, |   | |   | enabled); |   |

void * <var class="pdparam">closure</var>; ec_message * <var class="pdparam">mess</var>; int * <var class="pdparam">enabled</var>;

| int **has_core_generate_bounces_hook** ( | ); |   |

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

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

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

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

| int **call_core_generate_bounces_hook** ( | mess, |   | |   | enabled); |   |

ec_message * <var class="pdparam">mess</var>; int * <var class="pdparam">enabled</var>;

Description

This hook allows you to override whether a bounce message will be generated for a given mail. The default behavior is to fall back to the configured settings. If GENERATE_BOUNCES_HOOK_CONT is returned, processing will fallback to other modules and then to the configuration. If GENERATE_BOUNCES_HOOK_OK is returned, then processing will terminate and the value passed back via enabled will be used.

Was this page helpful?