1 /*************************************************
2 * Exim - an Internet mail transport agent *
3 *************************************************/
5 /* Copyright (c) Tom Kistner <tom@duncanthrax.net> 2004, 2015
7 * Copyright (c) The Exim Maintainers 2016
8 * SPDX-License-Identifier: GPL-2.0-or-later
11 #ifdef WITH_CONTENT_SCAN
13 #define MIME_MAX_HEADER_SIZE 8192
14 #define MIME_MAX_LINE_LENGTH 32768
16 #define MBC_ATTACHMENT 0
17 #define MBC_COVERLETTER_ONESHOT 1
18 #define MBC_COVERLETTER_ALL 2
20 struct mime_boundary_context
22 struct mime_boundary_context *parent;
23 unsigned char *boundary;
27 typedef struct mime_header {
34 typedef struct mime_parameter {
40 /* MIME Anomaly list */
41 #define MIME_ANOMALY_BROKEN_BASE64 1
42 #define MIME_ANOMALY_BROKEN_QP 0