blob: 0b120b25c5d55b4714dfb6a25a801e1ce131167d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#ifndef TESTSUITE_SMTP_H
#define TESTSUITE_SMTP_H
void testsuite_smtp_init(void);
void testsuite_smtp_deinit(void);
void testsuite_smtp_reset(void);
/*
* Simulated SMTP out
*/
void *testsuite_smtp_start
(const struct sieve_script_env *senv ATTR_UNUSED,
const struct smtp_address *mail_from);
void testsuite_smtp_add_rcpt
(const struct sieve_script_env *senv ATTR_UNUSED,
void *handle, const struct smtp_address *rcpt_to);
struct ostream *testsuite_smtp_send
(const struct sieve_script_env *senv ATTR_UNUSED,
void *handle);
void testsuite_smtp_abort
(const struct sieve_script_env *senv ATTR_UNUSED,
void *handle);
int testsuite_smtp_finish
(const struct sieve_script_env *senv ATTR_UNUSED,
void *handle, const char **error_r);
/*
* Access
*/
bool testsuite_smtp_get
(const struct sieve_runtime_env *renv, unsigned int index);
#endif
|