dsync-data.h revision c820b702d1eabfd5b029ac168fe769265e541561
#ifndef DSYNC_DATA_H
#define DSYNC_DATA_H
#include "mail-storage.h"
typedef struct {
struct dsync_mailbox {
const char *name;
/* uid_validity=0 for \noselect mailbox */
};
/* 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 mailbox_guid_t *guid2);
unsigned int dest_len);
#endif