view src/lib-index/mbox/mbox-index.h @ 5:1b34ec11fff8 HEAD

Message data is parsed in blocks (no longer entirely mmap()ed). Several IOBuffer changes. All mixed signed/unsigned comparisions were fixed so code can now be compiled with gcc's -W flag. mbox support is broken currently, and there's most likely several other problems too.
author Timo Sirainen <tss@iki.fi>
date Thu, 22 Aug 2002 01:10:20 +0300
parents 3b1985cbc908
children a946ce1f09b7
line wrap: on
line source

#ifndef __MBOX_INDEX_H
#define __MBOX_INDEX_H

#include "mail-index.h"

MailIndex *mbox_index_alloc(const char *dir, const char *mbox_path);

MailFlags mbox_header_get_flags(const char *name, unsigned int name_len,
				const char *value, unsigned int value_len);

int mbox_index_rebuild(MailIndex *index);
int mbox_index_sync(MailIndex *index);
int mbox_index_fsck(MailIndex *index);
IOBuffer *mbox_open_mail(MailIndex *index, MailIndexRecord *rec);

int mbox_index_append(MailIndex *index, int fd, const char *path);
int mbox_index_append_mmaped(MailIndex *index, const char *data,
			     size_t data_size, off_t start_offset);

#endif