/src/pigeonhole/src/lib-sieve/plugins/body/ext-body.c
Line | Count | Source |
1 | | /* Copyright (c) 2002-2018 Pigeonhole authors, see the included COPYING file |
2 | | */ |
3 | | |
4 | | /* Extension body |
5 | | * ------------------ |
6 | | * |
7 | | * Authors: Stephan Bosch |
8 | | * Original CMUSieve implementation by Timo Sirainen |
9 | | * Specification: RFC 5173 |
10 | | * Implementation: full |
11 | | * Status: testing |
12 | | * |
13 | | */ |
14 | | |
15 | | #include "lib.h" |
16 | | #include "array.h" |
17 | | |
18 | | #include "sieve-extensions.h" |
19 | | #include "sieve-commands.h" |
20 | | #include "sieve-comparators.h" |
21 | | #include "sieve-match-types.h" |
22 | | #include "sieve-address-parts.h" |
23 | | |
24 | | #include "sieve-validator.h" |
25 | | #include "sieve-generator.h" |
26 | | #include "sieve-binary.h" |
27 | | #include "sieve-interpreter.h" |
28 | | #include "sieve-dump.h" |
29 | | |
30 | | #include "ext-body-common.h" |
31 | | |
32 | | /* |
33 | | * Extension |
34 | | */ |
35 | | |
36 | | static bool ext_body_validator_load |
37 | | (const struct sieve_extension *ext, struct sieve_validator *valdtr); |
38 | | |
39 | | const struct sieve_extension_def body_extension = { |
40 | | .name = "body", |
41 | | .validator_load = ext_body_validator_load, |
42 | | SIEVE_EXT_DEFINE_OPERATION(body_operation) |
43 | | }; |
44 | | |
45 | | static bool ext_body_validator_load |
46 | | (const struct sieve_extension *ext, struct sieve_validator *valdtr) |
47 | 0 | { |
48 | | /* Register new test */ |
49 | 0 | sieve_validator_register_command(valdtr, ext, &body_test); |
50 | |
|
51 | 0 | return TRUE; |
52 | 0 | } |
53 | | |
54 | | |