Mercurial > dovecot > core-2.2
changeset 13104:2224c74b0187
doveadm dump: Added fts support.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 22 Jul 2011 13:52:27 +0300 |
parents | 88f1c971f3a9 |
children | e6eac5f1e21b |
files | src/doveadm/doveadm-dump-index.c |
diffstat | 1 files changed, 15 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/doveadm/doveadm-dump-index.c Fri Jul 22 13:52:16 2011 +0300 +++ b/src/doveadm/doveadm-dump-index.c Fri Jul 22 13:52:27 2011 +0300 @@ -45,6 +45,11 @@ uint32_t save_date; }; +struct fts_index_header { + uint32_t last_indexed_uid; + uint32_t last_optimize_uid; + uint32_t last_optimize_msgcount; +}; struct virtual_mail_index_header { uint32_t change_counter; uint32_t mailbox_count; @@ -166,6 +171,16 @@ (unsigned long long)hdr->highest_modseq); printf(" - log_seq ...... = %u\n", hdr->log_seq); printf(" - log_offset ... = %u\n", hdr->log_offset); + } else if (strcmp(ext->name, "fts") == 0) { + const struct fts_index_header *hdr = data; + + printf("header\n"); + printf(" - last_indexed_uid ..... = %u\n", + hdr->last_indexed_uid); + printf(" - last_optimize_uid .... = %u\n", + hdr->last_optimize_uid); + printf(" - last_optimize_msgcount = %u\n", + hdr->last_optimize_msgcount); } else if (strcmp(ext->name, "virtual") == 0) { const struct virtual_mail_index_header *hdr = data; const struct virtual_mail_index_mailbox_record *rec;