| 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 | */ |
| 9 | |
| 10 | #ifdef WITH_CONTENT_SCAN |
| 11 | |
| 12 | #define MIME_MAX_HEADER_SIZE 8192 |
| 13 | #define MIME_MAX_LINE_LENGTH 32768 |
| 14 | |
| 15 | #define MBC_ATTACHMENT 0 |
| 16 | #define MBC_COVERLETTER_ONESHOT 1 |
| 17 | #define MBC_COVERLETTER_ALL 2 |
| 18 | |
| 19 | struct mime_boundary_context |
| 20 | { |
| 21 | struct mime_boundary_context *parent; |
| 22 | unsigned char *boundary; |
| 23 | int context; |
| 24 | }; |
| 25 | |
| 26 | typedef struct mime_header { |
| 27 | uschar * name; |
| 28 | int namelen; |
| 29 | uschar ** value; |
| 30 | } mime_header; |
| 31 | |
| 32 | |
| 33 | typedef struct mime_parameter { |
| 34 | uschar * name; |
| 35 | int namelen; |
| 36 | uschar ** value; |
| 37 | } mime_parameter; |
| 38 | |
| 39 | /* MIME Anomaly list */ |
| 40 | #define MIME_ANOMALY_BROKEN_BASE64 1 |
| 41 | #define MIME_ANOMALY_BROKEN_QP 0 |
| 42 | |
| 43 | |
| 44 | #endif |