diff src/doveadm/dsync/dsync-mailbox.h @ 16025:c6082de4bf5b

dsync: Added support for syncing mailbox attributes.
author Timo Sirainen <tss@iki.fi>
date Thu, 14 Mar 2013 15:41:09 +0200
parents 5a1fc3723371
children 0e5a359b7b7f
line wrap: on
line diff
--- a/src/doveadm/dsync/dsync-mailbox.h	Thu Mar 14 15:32:14 2013 +0200
+++ b/src/doveadm/dsync/dsync-mailbox.h	Thu Mar 14 15:41:09 2013 +0200
@@ -15,4 +15,20 @@
 	ARRAY_TYPE(mailbox_cache_field) cache_fields;
 };
 
+struct dsync_mailbox_attribute {
+	enum mail_attribute_type type;
+	const char *key;
+	const char *value; /* NULL = not looked up yet / deleted */
+
+	time_t last_change; /* 0 = unknown */
+	uint64_t modseq; /* 0 = unknown */
+
+	bool deleted; /* attribute is known to have been deleted */
+	bool exported; /* internally used by exporting */
+};
+
+void dsync_mailbox_attribute_dup(pool_t pool,
+				 const struct dsync_mailbox_attribute *src,
+				 struct dsync_mailbox_attribute *dest_r);
+
 #endif