Lines Matching defs:file
1 /* Copyright (c) 2010-2018 Dovecot authors, see the included COPYING file */
6 #include "dbox-file.h"
25 dbox_attachment_file_get_stream_from(struct dbox_file *file,
33 if (file->storage->attachment_dir == NULL) {
34 mail_storage_set_critical(&file->storage->storage,
36 "but mail_attachment_dir is unset", file->cur_path);
40 msg_size = dbox_file_get_plaintext_size(file);
41 path_suffix = file->storage->v.get_attachment_path_suffix(file);
42 if (index_attachment_stream_get(file->storage->attachment_fs,
43 file->storage->attachment_dir,
50 int dbox_attachment_file_get_stream(struct dbox_file *file,
57 if ((ret = dbox_file_metadata_read(file)) <= 0)
60 i_stream_seek(file->input, file->cur_offset + file->msg_header_size);
62 ext_refs = dbox_file_metadata_get(file, DBOX_METADATA_EXT_REF);
68 ret = dbox_attachment_file_get_stream_from(file, ext_refs,
71 dbox_file_set_corrupted(file,