view src/lib-storage/index/index-messageset.h @ 903:fd8888f6f037 HEAD

Naming style changes, finally got tired of most of the typedefs. Also the previous enum -> macro change reverted so that we don't use the highest bit anymore, that's incompatible with old indexes so they will be rebuilt.
author Timo Sirainen <tss@iki.fi>
date Sun, 05 Jan 2003 15:09:51 +0200
parents 276b7a53c264
children 411006be3c66
line wrap: on
line source

#ifndef __INDEX_MESSAGESET_H
#define __INDEX_MESSAGESET_H

#include "index-storage.h"

/* If FALSE is returned, the loop is stopped. */
typedef int (*MsgsetForeachFunc)(struct mail_index *index,
				 struct mail_index_record *rec,
				 unsigned int client_seq, unsigned int idx_seq,
				 void *context);

/* Returns 1 if all were found, 2 if some messages were deleted,
   0 func returned FALSE, -1 if internal error occured or -2 if messageset
   was invalid. */
int index_messageset_foreach(struct index_mailbox *ibox,
			     const char *messageset, int uidset,
			     MsgsetForeachFunc func, void *context);

#endif