diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:51:24 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:51:24 +0000 |
commit | f7548d6d28c313cf80e6f3ef89aed16a19815df1 (patch) | |
tree | a3f6f2a3f247293bee59ecd28e8cd8ceb6ca064a /src/lmtp/lmtp-common.h | |
parent | Initial commit. (diff) | |
download | dovecot-f7548d6d28c313cf80e6f3ef89aed16a19815df1.tar.xz dovecot-f7548d6d28c313cf80e6f3ef89aed16a19815df1.zip |
Adding upstream version 1:2.3.19.1+dfsg1.upstream/1%2.3.19.1+dfsg1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/lmtp/lmtp-common.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/lmtp/lmtp-common.h b/src/lmtp/lmtp-common.h new file mode 100644 index 0000000..8e1729c --- /dev/null +++ b/src/lmtp/lmtp-common.h @@ -0,0 +1,35 @@ +#ifndef LMTP_COMMON_H +#define LMTP_COMMON_H + +#include "lib.h" +#include "array.h" +#include "ioloop.h" +#include "settings-parser.h" +#include "master-service.h" +#include "smtp-reply.h" +#include "smtp-server.h" +#include "lmtp-client.h" +#include "lmtp-settings.h" + +#define LMTP_RCPT_FORWARD_CAPABILITY "XRCPTFORWARD" +#define LMTP_RCPT_FORWARD_PARAMETER "XRCPTFORWARD" + +typedef void lmtp_client_created_func_t(struct client **client); + +extern lmtp_client_created_func_t *hook_client_created; +extern struct event_category event_category_lmtp; + +extern char *dns_client_socket_path, *base_dir; +extern struct mail_storage_service_ctx *storage_service; +extern struct anvil_client *anvil; + +extern struct smtp_server *lmtp_server; + +/* Sets the hook_client_created and returns the previous hook, + which the new_hook should call if it's non-NULL. */ +lmtp_client_created_func_t * +lmtp_client_created_hook_set(lmtp_client_created_func_t *new_hook); + +void lmtp_anvil_init(void); + +#endif |