blob: 3b2eaa33803611551f3e57932a1d1b0f49d9a622 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
#ifndef LMTP_SETTINGS_H
#define LMTP_SETTINGS_H
struct mail_user_settings;
struct lda_settings;
struct lmtp_settings;
/* <settings checks> */
enum lmtp_hdr_delivery_address {
LMTP_HDR_DELIVERY_ADDRESS_NONE,
LMTP_HDR_DELIVERY_ADDRESS_FINAL,
LMTP_HDR_DELIVERY_ADDRESS_ORIGINAL
};
enum lmtp_client_workarounds {
LMTP_WORKAROUND_WHITESPACE_BEFORE_PATH = BIT(0),
LMTP_WORKAROUND_MAILBOX_FOR_PATH = BIT(1),
};
/* </settings checks> */
struct lmtp_settings {
bool lmtp_proxy;
bool lmtp_save_to_detail_mailbox;
bool lmtp_rcpt_check_quota;
bool lmtp_add_received_header;
bool lmtp_verbose_replies;
unsigned int lmtp_user_concurrency_limit;
const char *lmtp_hdr_delivery_address;
const char *lmtp_rawlog_dir;
const char *lmtp_proxy_rawlog_dir;
const char *lmtp_client_workarounds;
const char *login_greeting;
const char *login_trusted_networks;
const char *mail_plugins;
const char *mail_plugin_dir;
enum lmtp_hdr_delivery_address parsed_lmtp_hdr_delivery_address;
enum lmtp_client_workarounds parsed_workarounds;
};
extern const struct setting_parser_info lmtp_setting_parser_info;
void lmtp_settings_dup(const struct setting_parser_context *set_parser,
pool_t pool,
struct mail_user_settings **user_set_r,
struct lmtp_settings **lmtp_set_r,
struct lda_settings **lda_set_r);
#endif
|