dsync-data.h revision de62ce819d59a529530da4b57be1b8d6dad13d6b
#ifndef DSYNC_DATA_H
#define DSYNC_DATA_H
#include "mail-storage.h"
typedef struct {
enum dsync_mailbox_flags {
DSYNC_MAILBOX_FLAG_NOSELECT = 0x01,
};
struct dsync_mailbox {
const char *name;
char name_sep;
/* 128bit SHA1 sum of mailbox name */
/* Mailbox's GUID. Full of zero with \Noselect mailboxes. */
/* if mailbox is deleted, this is the deletion timestamp.
otherwise it's the last rename timestamp. */
enum dsync_mailbox_flags flags;
};
#define dsync_mailbox_is_noselect(dsync_box) \
/* dsync_worker_msg_iter_next() returns also all expunged messages from
the end of mailbox with this flag set. The GUIDs are 128 bit GUIDs saved
to transaction log (mail_generate_guid_128_hash()). */
#define DSYNC_MAIL_FLAG_EXPUNGED 0x10000000
struct dsync_message {
const char *guid;
enum mail_flags flags;
/* keywords are sorted by name */
const char *const *keywords;
};
struct dsync_msg_static_data {
const char *pop3_uidl;
};
struct dsync_mailbox *
struct dsync_message *
const struct dsync_mailbox *box2);
struct dsync_mailbox *const *box2);
const struct dsync_mailbox *box2);
struct dsync_mailbox *const *box2);
const mailbox_guid_t *guid2);
unsigned int dest_len);
#endif