if (dbox_rec == NULL || dbox_rec->map_uid == 0) {
mail_index_lookup_uid(view, seq, &uid);
mail_storage_set_critical(&mbox->storage->storage.storage,
- "dbox %s: map uid lost for uid %u",
+ "mdbox %s: map uid lost for uid %u",
mbox->box.path, uid);
mdbox_storage_set_corrupted(mbox->storage);
return -1;
cur_map_uid_validity = dbox_map_get_uid_validity(mbox->storage->map);
if (cur_map_uid_validity != mbox->map_uid_validity) {
mail_storage_set_critical(&mbox->storage->storage.storage,
- "dbox %s: map uidvalidity mismatch (%u vs %u)",
+ "mdbox %s: map uidvalidity mismatch (%u vs %u)",
mbox->box.path, mbox->map_uid_validity,
cur_map_uid_validity);
mdbox_storage_set_corrupted(mbox->storage);
va_start(args, format);
mail_storage_set_critical(MAP_STORAGE(map),
- "dbox map %s corrupted: %s",
+ "mdbox map %s corrupted: %s",
map->index->filepath,
t_strdup_vprintf(format, args));
va_end(args);
mail_index_sync_get_offsets(sync_ctx, &seq1, &offset1, &seq2, &offset2);
if (offset1 != offset2 || seq1 != seq2) {
/* something had crashed. need a full resync. */
- i_warning("dbox %s: Inconsistency in map index "
+ i_warning("mdbox %s: Inconsistency in map index "
"(%u,%"PRIuUOFF_T" != %u,%"PRIuUOFF_T")",
map->path, seq1, offset1, seq2, offset2);
mdbox_storage_set_corrupted(map->storage);
ext = strrchr(fname, '.');
if (ext == NULL || (strcmp(ext, ".broken") != 0 &&
strcmp(ext, ".lock") != 0)) {
- i_warning("dbox rebuild: "
+ i_warning("mdbox rebuild: "
"Skipping file with missing ID: %s", path);
}
return 0;
if ((ret = dbox_file_open(file, &deleted)) > 0 && !deleted)
ret = rebuild_file_mails(ctx, file);
if (ret == 0)
- i_error("dbox rebuild: Failed to fix file %s", path);
+ i_error("mdbox rebuild: Failed to fix file %s", path);
dbox_file_unref(&file);
return ret < 0 ? -1 : 0;
}
return 0;
}
- i_warning("dbox %s: rebuilding indexes", ctx->storage->storage_dir);
+ i_warning("mdbox %s: rebuilding indexes", ctx->storage->storage_dir);
uid_validity = dbox_map_get_uid_validity(ctx->storage->map);
hdr = mail_index_get_header(ctx->sync_view);
storage->set = mail_storage_get_driver_settings(_storage);
if (*ns->list->set.mailbox_dir_name == '\0') {
- *error_r = "dbox: MAILBOXDIR must not be empty";
+ *error_r = "mdbox: MAILBOXDIR must not be empty";
return -1;
}
if (data_size < MDBOX_INDEX_HEADER_MIN_SIZE &&
(!mbox->creating || data_size != 0)) {
mail_storage_set_critical(&mbox->storage->storage.storage,
- "dbox %s: Invalid dbox header size: %"PRIuSIZE_T,
+ "mdbox %s: Invalid dbox header size: %"PRIuSIZE_T,
mbox->box.path, data_size);
mdbox_storage_set_corrupted(mbox->storage);
return -1;
return mdbox_sync_begin(mbox, flags, ctx_r);
}
mail_storage_set_critical(storage,
- "dbox %s: Storage keeps breaking",
+ "mdbox %s: Storage keeps breaking",
ctx->mbox->box.path);
ret = -1;
}