Lines Matching refs:mbox_hdr
966 if (sync_ctx->mbox->mbox_hdr.dirty_flag == 0)
1060 sync_ctx->mbox->mbox_hdr.dirty_flag = 1;
1068 if (sync_ctx->mbox->mbox_hdr.dirty_flag != 0)
1074 sync_ctx->mbox->mbox_hdr.dirty_flag = 1;
1210 sync_ctx->mbox->mbox_hdr.dirty_flag = 0;
1217 sync_ctx->mbox->mbox_hdr.dirty_flag = 1;
1435 memcpy(mbox->mbox_hdr.mailbox_guid, update->mailbox_guid,
1436 sizeof(mbox->mbox_hdr.mailbox_guid));
1437 } else if (guid_128_is_empty(mbox->mbox_hdr.mailbox_guid)) {
1438 guid_128_generate(mbox->mbox_hdr.mailbox_guid);
1443 if (data_size != sizeof(mbox->mbox_hdr) ||
1444 memcmp(data, &mbox->mbox_hdr, data_size) != 0) {
1445 if (data_size != sizeof(mbox->mbox_hdr)) {
1448 sizeof(mbox->mbox_hdr),
1453 0, &mbox->mbox_hdr,
1454 sizeof(mbox->mbox_hdr));
1479 ((uint64_t)st->st_size == sync_ctx->mbox->mbox_hdr.sync_size ||
1509 sync_ctx->mbox->mbox_hdr.sync_mtime = st->st_mtime;
1510 sync_ctx->mbox->mbox_hdr.sync_size = st->st_size;
1600 struct mbox_index_header *mbox_hdr = &sync_ctx->mbox->mbox_hdr;
1619 mbox_hdr->dirty_flag = 1;
1620 } else if ((uint32_t)st->st_mtime == mbox_hdr->sync_mtime &&
1621 (uint64_t)st->st_size == mbox_hdr->sync_size) {
1623 if (mbox_hdr->dirty_flag != 0 && (flags & MBOX_SYNC_UNDIRTY) != 0)
1628 (uint64_t)st->st_size == mbox_hdr->sync_size) {
1634 sync_ctx->mbox->mbox_hdr.dirty_flag = 1;
1640 sync_ctx->mbox->mbox_hdr.dirty_flag = 1;
1705 i_zero(&mbox->mbox_hdr);
1709 memcpy(&mbox->mbox_hdr, data, I_MIN(sizeof(mbox->mbox_hdr), data_size));
1711 mbox->mbox_hdr.dirty_flag = 1;
1765 if (guid_128_is_empty(mbox->mbox_hdr.mailbox_guid)) {
1770 if ((uint32_t)st->st_mtime == mbox->mbox_hdr.sync_mtime &&
1771 (uint64_t)st->st_size == mbox->mbox_hdr.sync_size) {
1773 if (mbox->mbox_hdr.dirty_flag != 0 || leave_dirty)