dsync-mailbox.h revision 14f6fe5d6c4834f273ca573c23c0659a93123363
#ifndef DSYNC_MAILBOX_H
#define DSYNC_MAILBOX_H
#include "mail-storage.h"
/* Mailbox that is going to be synced. Its name was already sent in the
mailbox tree. */
struct dsync_mailbox {
bool mailbox_lost;
bool have_guids, have_save_guids;
};
struct dsync_mailbox_attribute {
enum mail_attribute_type type;
const char *key;
/* if both values are NULL = not looked up yet / deleted */
const char *value;
struct istream *value_stream;
bool deleted; /* attribute is known to have been deleted */
bool exported; /* internally used by exporting */
};
#define DSYNC_ATTR_HAS_VALUE(attr) \
const struct dsync_mailbox_attribute *src,
struct dsync_mailbox_attribute *dest_r);
#endif