Mercurial > dovecot > core-2.2
comparison src/lib-mail/message-parser.h @ 6156:e18086698ebf HEAD
By default assume MIME message if Content-Type: exists even if Mime-Version:
doesn't. MESSAGE_PARSER_FLAG_MIME_VERSION_STRICT disables this.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 02 Aug 2007 14:21:05 +0300 |
parents | 5dee807e53cf |
children | e4eb71ae8e96 |
comparison
equal
deleted
inserted
replaced
6155:f0d8c9056706 | 6156:e18086698ebf |
---|---|
3 | 3 |
4 #include "message-header-parser.h" | 4 #include "message-header-parser.h" |
5 #include "message-size.h" | 5 #include "message-size.h" |
6 | 6 |
7 enum message_parser_flags { | 7 enum message_parser_flags { |
8 MESSAGE_PARSER_FLAG_SKIP_BODY_BLOCK = 0x01 | 8 /* Don't return message bodies in message_blocks. */ |
9 MESSAGE_PARSER_FLAG_SKIP_BODY_BLOCK = 0x01, | |
10 /* Buggy software creates Content-Type: headers without Mime-Version: | |
11 header. By default we allow this and assume message is MIME if | |
12 Content-Type: is found. This flag disables this. */ | |
13 MESSAGE_PARSER_FLAG_MIME_VERSION_STRICT = 0x02 | |
9 }; | 14 }; |
10 | 15 |
11 /* Note that these flags are used directly by message-parser-serialize, so | 16 /* Note that these flags are used directly by message-parser-serialize, so |
12 existing flags can't be changed without breaking backwards compatibility */ | 17 existing flags can't be changed without breaking backwards compatibility */ |
13 enum message_part_flags { | 18 enum message_part_flags { |