Mercurial > dovecot > original-hg > dovecot-1.2
diff src/lib-mail/message-parser.h @ 106:5fe3e04ca8d9 HEAD
Added support for caching of MessagePart data. This is useful for fetching
body[part]s. Also BODY and BODYSTRUCTURE can be generated fast using it.
Also fixed index corruption in some situations when more cached data was
added to index.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 02 Sep 2002 05:31:18 +0300 |
parents | 31034993473c |
children | 4223b9ed0c80 |
line wrap: on
line diff
--- a/src/lib-mail/message-parser.h Sun Sep 01 02:57:37 2002 +0300 +++ b/src/lib-mail/message-parser.h Mon Sep 02 05:31:18 2002 +0300 @@ -5,6 +5,18 @@ typedef struct _MessagePosition MessagePosition; typedef struct _MessageSize MessageSize; +typedef enum { + MESSAGE_PART_FLAG_MULTIPART = 0x01, + MESSAGE_PART_FLAG_MULTIPART_DIGEST = 0x02, + MESSAGE_PART_FLAG_MESSAGE_RFC822 = 0x04, + + /* content-type: text/... */ + MESSAGE_PART_FLAG_TEXT = 0x08, + + /* content-transfer-encoding: binary */ + MESSAGE_PART_FLAG_BINARY = 0x10 +} MessagePartFlags; + struct _MessageSize { uoff_t physical_size; uoff_t virtual_size; @@ -20,12 +32,7 @@ MessageSize header_size; MessageSize body_size; - unsigned int multipart:1; - unsigned int multipart_digest:1; - unsigned int message_rfc822:1; - unsigned int text:1; /* content-type: text/.. */ - unsigned int binary:1; /* content-transfer-encoding: binary */ - + MessagePartFlags flags; void *context; };