view src/lib-index/maildir/maildir-update.c @ 222:cf4d065f2f85 HEAD

lots of cleanups. also index/datafile is now capable of staying in memory, as long as it's noticed while opening the index.
author Timo Sirainen <tss@iki.fi>
date Sat, 14 Sep 2002 14:09:42 +0300
parents 55e09f36d23d
children 567e932cdc66
line wrap: on
line source

/* Copyright (C) 2002 Timo Sirainen */

#include "lib.h"
#include "iobuffer.h"
#include "maildir-index.h"

int maildir_record_update(MailIndexUpdate *update, int fd, const char *path)
{
	IOBuffer *inbuf;

	i_assert(path != NULL);

	inbuf = io_buffer_create_mmap(fd, default_pool,
				      MAIL_MMAP_BLOCK_SIZE, 0);
	mail_index_update_headers(update, inbuf, 0, NULL, NULL);
	io_buffer_destroy(inbuf);
	return TRUE;
}