mbox-sync-private.h revision e68309fcfa2eaa88217fd51e7b4900fc9c20ef5d
7d548d4984752d74bfea8dc4bf1781a8996f43e7Timo Sirainen#define MBOX_NONRECENT MAIL_RECENT /* kludgy */
7d548d4984752d74bfea8dc4bf1781a8996f43e7Timo Sirainen#define STATUS_FLAGS_MASK (MAIL_SEEN|MBOX_NONRECENT)
7d548d4984752d74bfea8dc4bf1781a8996f43e7Timo Sirainen#define XSTATUS_FLAGS_MASK (MAIL_ANSWERED|MAIL_FLAGGED|MAIL_DRAFT|MAIL_DELETED)
7d548d4984752d74bfea8dc4bf1781a8996f43e7Timo Sirainenextern struct mbox_flag_type mbox_status_flags[];
7d548d4984752d74bfea8dc4bf1781a8996f43e7Timo Sirainenextern struct mbox_flag_type mbox_xstatus_flags[];
7d548d4984752d74bfea8dc4bf1781a8996f43e7Timo Sirainen uoff_t offset; /* if space <= 0, points to beginning */
7d548d4984752d74bfea8dc4bf1781a8996f43e7Timo Sirainen size_t header_first_change, header_last_change;
7d548d4984752d74bfea8dc4bf1781a8996f43e7Timo Sirainenint mbox_sync(struct index_mailbox *ibox, int last_commit);
7d548d4984752d74bfea8dc4bf1781a8996f43e7Timo Sirainenvoid mbox_sync_parse_next_mail(struct istream *input,
e376e08040b5f21ff79a15ae728d2532a34207f6Timo Sirainenvoid mbox_sync_update_header(struct mbox_sync_mail_context *ctx,
7d548d4984752d74bfea8dc4bf1781a8996f43e7Timo Sirainenvoid mbox_sync_update_header_from(struct mbox_sync_mail_context *ctx,
32142dc3b19a1dff23ef351596703f1a43ea51a0Timo Sirainenint mbox_sync_try_rewrite(struct mbox_sync_mail_context *ctx, off_t move_diff);
32142dc3b19a1dff23ef351596703f1a43ea51a0Timo Sirainenint mbox_sync_rewrite(struct mbox_sync_context *sync_ctx, buffer_t *mails_buf,
32142dc3b19a1dff23ef351596703f1a43ea51a0Timo Sirainen uint32_t first_seq, uint32_t last_seq, off_t extra_space);