-
Notifications
You must be signed in to change notification settings - Fork 29
/
ext-vacation-common.h
61 lines (44 loc) · 1.3 KB
/
ext-vacation-common.h
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
54
55
56
57
58
59
60
61
/* Copyright (c) 2002-2018 Pigeonhole authors, see the included COPYING file
*/
#ifndef __EXT_VACATION_COMMON_H
#define __EXT_VACATION_COMMON_H
#include "sieve-common.h"
/*
* Extension configuration
*/
#define EXT_VACATION_DEFAULT_PERIOD (7*24*60*60)
#define EXT_VACATION_DEFAULT_MIN_PERIOD (24*60*60)
#define EXT_VACATION_DEFAULT_MAX_PERIOD 0
#define EXT_VACATION_DEFAULT_MAX_SUBJECT_CODEPOINTS 256
struct ext_vacation_config {
unsigned int min_period;
unsigned int max_period;
unsigned int default_period;
unsigned long long max_subject_codepoints;
bool use_original_recipient;
bool dont_check_recipient;
bool send_from_recipient;
bool to_header_ignore_envelope;
};
/*
* Commands
*/
extern const struct sieve_command_def vacation_command;
/*
* Operations
*/
extern const struct sieve_operation_def vacation_operation;
/*
* Extensions
*/
/* Vacation */
extern const struct sieve_extension_def vacation_extension;
bool ext_vacation_load
(const struct sieve_extension *ext, void **context);
void ext_vacation_unload
(const struct sieve_extension *ext);
/* Vacation-seconds */
extern const struct sieve_extension_def vacation_seconds_extension;
bool ext_vacation_register_seconds_tag
(struct sieve_validator *valdtr, const struct sieve_extension *vacation_ext);
#endif /* __EXT_VACATION_COMMON_H */