Mercurial > dovecot > core-2.2
diff src/lib-storage/index/dbox-single/sdbox-file.c @ 10660:56b1d4dd9c7d HEAD
lib-storage: *_mailboxes don't descend from index_mailbox anymore, it's now a context.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 07 Feb 2010 17:30:24 +0200 |
parents | 615eef3139c2 |
children | 3d7fb69184b3 |
line wrap: on
line diff
--- a/src/lib-storage/index/dbox-single/sdbox-file.c Sun Feb 07 16:27:18 2010 +0200 +++ b/src/lib-storage/index/dbox-single/sdbox-file.c Sun Feb 07 17:30:24 2010 +0200 @@ -13,7 +13,7 @@ i_free(file->file.primary_path); i_free(file->file.alt_path); file->file.primary_path = - i_strdup_printf("%s/%s", file->mbox->ibox.box.path, fname); + i_strdup_printf("%s/%s", file->mbox->box.path, fname); if (file->mbox->alt_path != NULL) { file->file.alt_path = i_strdup_printf("%s/%s", file->mbox->alt_path, fname); @@ -36,7 +36,7 @@ } else { file->file.primary_path = i_strdup_printf("%s/%s", - file->mbox->ibox.box.path, + file->mbox->box.path, dbox_generate_tmp_filename()); } } T_END; @@ -59,7 +59,7 @@ old_path = file->file.cur_path; new_fname = t_strdup_printf(SDBOX_MAIL_FILE_FORMAT, uid); - new_path = t_strdup_printf("%s/%s", file->mbox->ibox.box.path, + new_path = t_strdup_printf("%s/%s", file->mbox->box.path, new_fname); if (rename(old_path, new_path) < 0) { mail_storage_set_critical(&file->file.storage->storage, @@ -75,7 +75,7 @@ int sdbox_file_create_fd(struct dbox_file *file, const char *path, bool parents) { struct sdbox_file *sfile = (struct sdbox_file *)file; - struct mailbox *box = &sfile->mbox->ibox.box; + struct mailbox *box = &sfile->mbox->box; const char *p, *dir; mode_t old_mask; int fd;