view src/lib-storage/index/mbox/mbox-file.h @ 6930:48ddc0c4036c HEAD

Optimize physical mail size calculation by using the next message's offset or the mbox size for the last message.
author Timo Sirainen <tss@iki.fi>
date Tue, 04 Dec 2007 15:20:01 +0200
parents e4eb71ae8e96
children
line wrap: on
line source

#ifndef MBOX_FILE_H
#define MBOX_FILE_H

int mbox_file_open(struct mbox_mailbox *mbox);
void mbox_file_close(struct mbox_mailbox *mbox);

int mbox_file_open_stream(struct mbox_mailbox *mbox);
void mbox_file_close_stream(struct mbox_mailbox *mbox);

int mbox_file_lookup_offset(struct mbox_mailbox *mbox,
			    struct mail_index_view *view,
			    uint32_t seq, uoff_t *offset_r);
int mbox_file_seek(struct mbox_mailbox *mbox, struct mail_index_view *view,
		   uint32_t seq, bool *deleted_r);

#endif