Mercurial > dovecot > original-hg > dovecot-1.2
comparison src/lib-mail/message-parser.h @ 988:8028c4dcf38f HEAD
mail-storage.h interface changes, affects pretty much everything.
FETCH, SEARCH, SORT and THREAD handling were pretty much moved from
lib-storage/ to imap/ so adding non-index storages would be much easier now.
Also POP3 server can now be easily implemented with lib-storage.
Not too well tested, and at least one major problem: partial fetching is
_slow_.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 20 Jan 2003 16:52:51 +0200 |
parents | 411006be3c66 |
children | 60646878858e |
comparison
equal
deleted
inserted
replaced
987:cbf096fbb9f0 | 988:8028c4dcf38f |
---|---|
1 #ifndef __MESSAGE_PARSER_H | 1 #ifndef __MESSAGE_PARSER_H |
2 #define __MESSAGE_PARSER_H | 2 #define __MESSAGE_PARSER_H |
3 | |
4 #include "message-size.h" | |
3 | 5 |
4 #define IS_LWSP(c) \ | 6 #define IS_LWSP(c) \ |
5 ((c) == ' ' || (c) == '\t') | 7 ((c) == ' ' || (c) == '\t') |
6 | 8 |
7 enum message_part_flags { | 9 enum message_part_flags { |
12 /* content-type: text/... */ | 14 /* content-type: text/... */ |
13 MESSAGE_PART_FLAG_TEXT = 0x08, | 15 MESSAGE_PART_FLAG_TEXT = 0x08, |
14 | 16 |
15 /* content-transfer-encoding: binary */ | 17 /* content-transfer-encoding: binary */ |
16 MESSAGE_PART_FLAG_BINARY = 0x10 | 18 MESSAGE_PART_FLAG_BINARY = 0x10 |
17 }; | |
18 | |
19 struct message_size { | |
20 uoff_t physical_size; | |
21 uoff_t virtual_size; | |
22 unsigned int lines; | |
23 }; | 19 }; |
24 | 20 |
25 struct message_part { | 21 struct message_part { |
26 struct message_part *parent; | 22 struct message_part *parent; |
27 struct message_part *next; | 23 struct message_part *next; |