dsync-mailbox.h revision c864fdd520b0c3f10a4b9bc5373368f4ae8faaff
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen/* Mailbox that is going to be synced. Its name was already sent in the
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen mailbox tree. */
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen bool have_guids, have_save_guids, have_only_guid128;
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen uint32_t uid_validity, uid_next, messages_count, first_recent_uid;
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen const char *key;
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen /* if both values are NULL = not looked up yet / deleted */
bbce20cb4e5739e9a06058cf8ee1f38a7f6884f6Timo Sirainen bool deleted; /* attribute is known to have been deleted */
bbce20cb4e5739e9a06058cf8ee1f38a7f6884f6Timo Sirainen bool exported; /* internally used by exporting */
bbce20cb4e5739e9a06058cf8ee1f38a7f6884f6Timo Sirainen ((attr)->value != NULL || (attr)->value_stream != NULL)
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenint dsync_mailbox_lock(struct dsync_brain *brain, struct mailbox *box,