view src/lib-storage/index/index-fetch.h @ 364:ea958a5b9de1 HEAD

Added io_buffer_set_start_offset() and io_buffer_ref() and replaced io_buffer_destroy() with io_buffer_unref(). mbox file is now kept open all the time.
author Timo Sirainen <tss@iki.fi>
date Sun, 06 Oct 2002 08:44:27 +0300
parents b79b6da2f84a
children 1f0e7229ee58
line wrap: on
line source

#ifndef __INDEX_FETCH_H
#define __INDEX_FETCH_H

typedef struct {
	Mailbox *box;
	MailStorage *storage;
	ImapMessageCache *cache;
	MailIndex *index;
	const char **custom_flags;

	MailFetchData *fetch_data;
	IOBuffer *outbuf;
	TempString *str;
	int update_seen, found_unseen;
	int first;
} FetchContext;

ImapCacheField index_fetch_body_get_cache(const char *section);
int index_fetch_body_section(MailIndexRecord *rec, MailFetchBodyData *sect,
			     FetchContext *ctx);

#endif