SPDX: license tags (mostly by guesswork)
[exim.git] / src / src / mime.h
1 /*************************************************
2 *     Exim - an Internet mail transport agent    *
3 *************************************************/
4
5 /* Copyright (c) Tom Kistner <tom@duncanthrax.net> 2004, 2015
6  * License: GPL
7  * Copyright (c) The Exim Maintainers 2016
8  * SPDX-License-Identifier: GPL-2.0-only
9  */
10
11 #ifdef WITH_CONTENT_SCAN
12
13 #define MIME_MAX_HEADER_SIZE 8192
14 #define MIME_MAX_LINE_LENGTH 32768
15
16 #define MBC_ATTACHMENT            0
17 #define MBC_COVERLETTER_ONESHOT   1
18 #define MBC_COVERLETTER_ALL       2
19
20 struct mime_boundary_context
21 {
22   struct mime_boundary_context *parent;
23   unsigned char *boundary;
24   int context;
25 };
26
27 typedef struct mime_header {
28   uschar *  name;
29   int       namelen;
30   uschar ** value;
31 } mime_header;
32
33
34 typedef struct mime_parameter {
35   uschar *  name;
36   int       namelen;
37   uschar ** value;
38 } mime_parameter;
39
40 /* MIME Anomaly list */
41 #define MIME_ANOMALY_BROKEN_BASE64    1
42 #define MIME_ANOMALY_BROKEN_QP        0
43
44
45 #endif