Mercurial > dovecot > original-hg > dovecot-1.2
diff src/lib-index/mail-transaction-log.h @ 2050:ee1095ccfd23 HEAD
Index header changes now go through transaction log. Removed the kludgy
parameters for mail_index_sync_end(). Removed code duplication of syncing
index root mapping and view mapping. Some fixes to handling uidvalidity and
nextuid in syncing.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 24 May 2004 04:50:16 +0300 |
parents | 4f6b1118a53d |
children | cb5269c052e0 |
line wrap: on
line diff
--- a/src/lib-index/mail-transaction-log.h Mon May 24 04:01:42 2004 +0300 +++ b/src/lib-index/mail-transaction-log.h Mon May 24 04:50:16 2004 +0300 @@ -18,6 +18,7 @@ MAIL_TRANSACTION_APPEND = 0x00000002, MAIL_TRANSACTION_FLAG_UPDATE = 0x00000004, MAIL_TRANSACTION_CACHE_UPDATE = 0x00000008, + MAIL_TRANSACTION_HEADER_UPDATE = 0x00000010, MAIL_TRANSACTION_TYPE_MASK = 0x0000ffff, @@ -40,11 +41,6 @@ uint32_t uid1, uid2; }; -struct mail_transaction_cache_update { - uint32_t uid; - uint32_t cache_offset; -}; - struct mail_transaction_flag_update { uint32_t uid1, uid2; uint8_t add_flags; @@ -53,6 +49,17 @@ keywords_mask_t remove_keywords; }; +struct mail_transaction_cache_update { + uint32_t uid; + uint32_t cache_offset; +}; + +struct mail_transaction_header_update { + uint16_t offset; + uint16_t size; + unsigned char data[1]; /* variable size */ +}; + struct mail_transaction_log * mail_transaction_log_open_or_create(struct mail_index *index); void mail_transaction_log_close(struct mail_transaction_log *log);