/src/pigeonhole/src/lib-sieve/util/rfc2822.h
Line | Count | Source |
1 | | #ifndef RFC2822_H |
2 | | #define RFC2822_H |
3 | | |
4 | | #include "lib.h" |
5 | | |
6 | | #include <stdio.h> |
7 | | |
8 | | /* |
9 | | * Verification |
10 | | */ |
11 | | |
12 | | bool rfc2822_header_field_name_verify(const char *field_name, unsigned int len); |
13 | | bool rfc2822_header_field_body_verify(const char *field_body, unsigned int len, |
14 | | bool allow_crlf, bool allow_utf8); |
15 | | |
16 | | /* |
17 | | * |
18 | | */ |
19 | | |
20 | | const char *rfc2822_header_field_name_sanitize(const char *name); |
21 | | |
22 | | /* |
23 | | * Message composition |
24 | | */ |
25 | | |
26 | | unsigned int |
27 | | rfc2822_header_append(string_t *header, const char *name, const char *body, |
28 | | bool crlf, uoff_t *body_offset_r); |
29 | | |
30 | | static inline void |
31 | | rfc2822_header_write(string_t *header, const char *name, const char *body) |
32 | 0 | { |
33 | 0 | (void)rfc2822_header_append(header, name, body, TRUE, NULL); |
34 | 0 | } Unexecuted instantiation: sieve-commands.c:rfc2822_header_write Unexecuted instantiation: sieve-actions.c:rfc2822_header_write Unexecuted instantiation: cmd-redirect.c:rfc2822_header_write Unexecuted instantiation: ext-reject.c:rfc2822_header_write Unexecuted instantiation: ext-editheader-settings.c:rfc2822_header_write Unexecuted instantiation: edit-mail.c:rfc2822_header_write Unexecuted instantiation: rfc2822.c:rfc2822_header_write Unexecuted instantiation: cmd-vacation.c:rfc2822_header_write Unexecuted instantiation: ntfy-mailto.c:rfc2822_header_write Unexecuted instantiation: uri-mailto.c:rfc2822_header_write Unexecuted instantiation: cmd-addheader.c:rfc2822_header_write Unexecuted instantiation: cmd-deleteheader.c:rfc2822_header_write Unexecuted instantiation: ext-editheader-common.c:rfc2822_header_write Unexecuted instantiation: cmd-report.c:rfc2822_header_write |
35 | | |
36 | | void rfc2822_header_printf(string_t *header, const char *name, |
37 | | const char *fmt, ...) ATTR_FORMAT(3, 4); |
38 | | void rfc2822_header_utf8_printf(string_t *header, const char *name, |
39 | | const char *fmt, ...) ATTR_FORMAT(3, 4); |
40 | | |
41 | | void rfc2822_header_write_address(string_t *header, const char *name, |
42 | | const char *address); |
43 | | |
44 | | #endif |