FreeCalypso > hg > falcon-mail-tools
comparison f-demime/defs.h @ 0:7e0d08176f32
f-demime starting code
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 06 May 2023 06:14:03 +0000 |
parents | |
children | 612c4d0df768 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:7e0d08176f32 |
---|---|
1 /* | |
2 * This header file holds miscellaneous definitions for f-demime, | |
3 * including various limits. | |
4 */ | |
5 | |
6 enum msg_state { | |
7 MSG_STATE_UNDEF, /* before From line */ | |
8 MSG_STATE_HEADER, /* message or body part header */ | |
9 MSG_STATE_BODY_PASS, /* body pass-through state */ | |
10 MSG_STATE_PTEXT_B64, /* text/plain decoding from base64 */ | |
11 MSG_STATE_PTEXT_QP, /* text/plain decoding from quoted-printable */ | |
12 MSG_STATE_BLOB_B64, /* blob extraction from base64 */ | |
13 MSG_STATE_B64_TO_QP, /* base64 to quoted-printable conversion */ | |
14 }; | |
15 | |
16 enum msg_hdr_state { | |
17 HDR_STATE_BEGIN, /* beginning of entity header */ | |
18 HDR_STATE_GOTSOME, /* got some header line(s), regular */ | |
19 HDR_STATE_CONT_TYPE, /* after Content-Type: header */ | |
20 HDR_STATE_CONT_TE, /* after Content-Transfer-Encoding: header */ | |
21 HDR_STATE_ERROR /* errored state */ | |
22 }; | |
23 | |
24 #define LINE_BUF_SIZE 1024 | |
25 #define HDR_BUF_SIZE 2048 | |
26 | |
27 #define MAX_MP_BOUNDARY 70 /* not counting the hyphens */ | |
28 #define MAX_MP_NESTING 8 | |
29 | |
30 #define OUTPUT_LINE_MAX 320 | |
31 #define QP_MAX_LINE 76 |