subscription-file.h revision 7c424aa51c956c628e3512055841aa2f9eef4833
#ifndef __SUBSCRIPTION_FILE_H
#define __SUBSCRIPTION_FILE_H
#include "mail-storage.h"
/* Returns FALSE if foreach should be aborted */
typedef int subsfile_foreach_callback_t(struct mail_storage *storage,
const char *name, void *context);
int subsfile_set_subscribed(struct mail_storage *storage,
const char *name, int set);
/* Returns -1 if error, 0 if foreach function returned FALSE or 1 if all ok */
int subsfile_foreach(struct mail_storage *storage, const char *mask,
subsfile_foreach_callback_t *callback, void *context);
#endif