maildir-uidlist.h revision 6b77095184aeb8a9976a74fa9ba1a06740f40d0e
#ifndef __MAILDIR_UIDLI3ST_H
#define __MAILDIR_UIDLIST_H
#define MAILDIR_UIDLIST_NAME "dovecot-uidlist"
struct maildir_uidlist_sync_ctx;
enum maildir_uidlist_sync_flags {
MAILDIR_UIDLIST_SYNC_PARTIAL = 0x01
};
enum maildir_uidlist_rec_flag {
MAILDIR_UIDLIST_REC_FLAG_NEW_DIR = 0x01,
MAILDIR_UIDLIST_REC_FLAG_MOVED = 0x02,
MAILDIR_UIDLIST_REC_FLAG_RECENT = 0x04,
};
/* Returns -1 if error, 0 if file is broken or lost, 1 if ok. */
/* Returns uidlist record for given filename, or NULL if not found. */
const char *
enum maildir_uidlist_rec_flag *flags_r);
/* Returns TRUE if mail with given UID is recent. */
/* Returns number of recent messages. */
/* Sync uidlist with what's actually on maildir. Returns same as
maildir_uidlist_lock(). */
struct maildir_uidlist_sync_ctx **sync_ctx_r);
/* Returns 1 = ok, -1 = error, 0 = new file and dovecot-uidlist is locked */
const char *filename);
const char *filename,
enum maildir_uidlist_rec_flag flags);
const char *filename);
const char *
const char *filename);
const char *
const char *filename);
const char *filename,
enum maildir_uidlist_rec_flag flags);
/* List all maildir files. */
struct maildir_uidlist_iter_ctx *
enum maildir_uidlist_rec_flag *flags_r,
const char **filename_r);
#endif