sdbox-file.h revision cc0a651962a3e54d5a62231ac5847ae7f9f7de7f
#ifndef SDBOX_FILE_H
#define SDBOX_FILE_H
#include "dbox-file.h"
struct sdbox_file {
struct sdbox_mailbox *mbox;
/* 0 while file is being created */
bool written_to_disk;
};
/* Get file's extrefs metadata. */
/* Returns attachment path for this file, given the source path. The result is
always <hash>-<guid>-<mailbox_guid>-<uid>. The source path is expected to
contain <hash>-<guid>[-*]. */
const char *
/* Assign UID for a newly created file (by renaming it) */
bool parents);
/* Move the file to alt path or back. */
/* Unlink file and all of its referenced attachments. */
/* Unlink file and its attachments when rollbacking a saved message. */
#endif