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 /pigeonhole/src/lib-sieve/sieve-smtp.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 'pigeonhole/src/lib-sieve/sieve-smtp.h')
-rw-r--r-- | pigeonhole/src/lib-sieve/sieve-smtp.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pigeonhole/src/lib-sieve/sieve-smtp.h b/pigeonhole/src/lib-sieve/sieve-smtp.h new file mode 100644 index 0000000..f7b9c84 --- /dev/null +++ b/pigeonhole/src/lib-sieve/sieve-smtp.h @@ -0,0 +1,31 @@ +#ifndef SIEVE_SMTP_H +#define SIEVE_SMTP_H + +#include "sieve-common.h" + +bool sieve_smtp_available + (const struct sieve_script_env *senv); + +struct sieve_smtp_context; + +struct sieve_smtp_context *sieve_smtp_start + (const struct sieve_script_env *senv, + const struct smtp_address *mail_from); +void sieve_smtp_add_rcpt + (struct sieve_smtp_context *sctx, + const struct smtp_address *rcpt_to); +struct ostream *sieve_smtp_send + (struct sieve_smtp_context *sctx); + +struct sieve_smtp_context *sieve_smtp_start_single + (const struct sieve_script_env *senv, + const struct smtp_address *rcpt_to, + const struct smtp_address *mail_from, + struct ostream **output_r); + +void sieve_smtp_abort + (struct sieve_smtp_context *sctx); +int sieve_smtp_finish + (struct sieve_smtp_context *sctx, const char **error_r); + +#endif |