acl  3.5.3.0
mime_define.hpp
浏览该文件的文档.
1 #pragma once
2 #include "../acl_cpp_define.hpp"
3 
4 #if !defined(ACL_MIME_DISABLE)
5 
6 /*
7  * Content types and subtypes that we care about, either because we have to,
8  * or because we want to filter out broken MIME messages.
9  */
10 
11 #define MIME_CTYPE_OTHER 0
12 #define MIME_CTYPE_TEXT 1
13 #define MIME_CTYPE_MESSAGE 2
14 #define MIME_CTYPE_MULTIPART 3
15 #define MIME_CTYPE_IMAGE 4
16 #define MIME_CTYPE_APPLICATION 5
17 #define MIME_CTYPE_MIN MIME_CTYPE_OTHER
18 #define MIME_CTYPE_MAX MIME_CTYPE_APPLICATION
19 
20 #define MIME_STYPE_OTHER 6
21 #define MIME_STYPE_PLAIN 7
22 #define MIME_STYPE_HTML 8
23 #define MIME_STYPE_RFC822 9
24 #define MIME_STYPE_PARTIAL 10
25 #define MIME_STYPE_EXTERN_BODY 11
26 #define MIME_STYPE_JPEG 12
27 #define MIME_STYPE_GIF 13
28 #define MIME_STYPE_BMP 14
29 #define MIME_STYPE_PNG 15
30 #define MIME_STYPE_OCTET_STREAM 16
31 #define MIME_STYPE_MIXED 17
32 #define MIME_STYPE_ALTERNATIVE 18
33 #define MIME_STYPE_RELATED 19
34 #define MIME_STYPE_MIN MIME_STYPE_OTHER
35 #define MIME_STYPE_MAX MIME_STYPE_RELATED
36 
37 #define MIME_ENC_OTHER 20
38 #define MIME_ENC_QP 21 /* encoding + domain */
39 #define MIME_ENC_BASE64 22 /* encoding + domain */
40 #define MIME_ENC_7BIT 23 /* domain only */
41 #define MIME_ENC_8BIT 24 /* domain only */
42 #define MIME_ENC_BINARY 25 /* domain only */
43 #define MIME_ENC_UUCODE 26 /* encoding + domain */
44 #define MIME_ENC_XXCODE 27 /* encoding + domain */
45 #define MIME_ENC_MIN MIME_ENC_OTHER
46 #define MIME_ENC_MAX MIME_ENC_XXCODE
47 
48 #define MIME_MIN MIME_CTYPE_OTHER
49 #define MIME_MAX MIME_ENC_MAX
50 
51 #endif // !defined(ACL_MIME_DISABLE)