bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Bosch/* Copyright (c) 2011-2018 Dovecot authors, see the included COPYING file */
cc2954ad6d8ba0509b870d773ba4b6b16353763cTimo Sirainen i_fatal("rec read() %d != %d", (int)ret, (int)sizeof(rec));
739f4f284b4a137c9291a00a23d197b1cd42099dTimo Sirainen if (rec.record_size < sizeof(rec) + sizeof(uint32_t) ||
739f4f284b4a137c9291a00a23d197b1cd42099dTimo Sirainen i_fatal("Invalid record_size=%u at offset %"PRIuUOFF_T,
cc2954ad6d8ba0509b870d773ba4b6b16353763cTimo Sirainen data = buffer_append_space_unsafe(buf, data_size);
cc2954ad6d8ba0509b870d773ba4b6b16353763cTimo Sirainen i_fatal("rec read() %d != %d", (int)ret, (int)data_size);
de62ce819d59a529530da4b57be1b8d6dad13d6bTimo Sirainen printf(" mailbox . = %s\n", guid_128_to_string(rec.guid));
cc2954ad6d8ba0509b870d773ba4b6b16353763cTimo Sirainen expunges = CONST_PTR_OFFSET(data, data_size - sizeof(uint32_t));
cc2954ad6d8ba0509b870d773ba4b6b16353763cTimo Sirainen uids_count = (rec.record_size - sizeof(rec) - sizeof(uint32_t)) /
cc2954ad6d8ba0509b870d773ba4b6b16353763cTimo Sirainenstatic void cmd_dump_fts_expunge_log(int argc ATTR_UNUSED, char *argv[])
cc2954ad6d8ba0509b870d773ba4b6b16353763cTimo Sirainen buf = buffer_create_dynamic(default_pool, 1024);
cc2954ad6d8ba0509b870d773ba4b6b16353763cTimo Sirainen } while (ret > 0);
cc2954ad6d8ba0509b870d773ba4b6b16353763cTimo Sirainenstatic bool test_dump_fts_expunge_log(const char *path)
cc2954ad6d8ba0509b870d773ba4b6b16353763cTimo Sirainen const char *p;
cc2954ad6d8ba0509b870d773ba4b6b16353763cTimo Sirainen return strcmp(p, "dovecot-expunges.log") == 0;
0b3e92b6043435c5aa9f1cf1d04b632f3e19abd9Phil Carmodystatic const struct doveadm_cmd_dump doveadm_cmd_dump_fts_expunge_log = {
cc2954ad6d8ba0509b870d773ba4b6b16353763cTimo Sirainen "fts-expunge-log",