Lines Matching defs:file
1 /* Copyright (c) 2007-2018 Dovecot authors, see the included COPYING file */
8 #include "sdbox-file.h"
29 struct dbox_file *file, uint32_t uid, bool primary)
35 if ((ret = dbox_file_open(file, &deleted)) > 0) {
38 ret = dbox_file_seek(file, 0);
41 if ((ret = dbox_file_fix(file, 0)) > 0)
42 ret = dbox_file_seek(file, 0);
49 i_warning("sdbox: Skipping unfixable file: %s", file->cur_path);
53 if (!dbox_file_is_in_alt(file) && !primary) {
54 /* we were supposed to open the file in alt storage, but it
72 struct dbox_file *file;
87 file = sdbox_file_init(mbox, uid);
89 file->cur_path = file->alt_path;
90 ret = sdbox_sync_add_file_index(ctx, file, uid, primary);
91 dbox_file_unref(&file);