#ifndef MBOX_SYNC_PRIVATE_H
#define MBOX_SYNC_PRIVATE_H
#include "md5.h"
#include "mail-index.h"
enum mbox_sync_flags {
};
struct mbox_flag_type {
char chr;
};
enum header_position {
};
/* kludgy. swap MAIL_RECENT with MBOX_NONRECENT_KLUDGE when writing Status
header, because 'O' flag means non-recent but internally we want to use
recent flag. */
extern struct mbox_flag_type mbox_status_flags[];
extern struct mbox_flag_type mbox_xstatus_flags[];
struct mbox_sync_mail {
/* uid=0 can mean that this mail describes an expunged area or that
this is a pseudo message */
/* following variables have a bit overloaded functionality:
a) space <= 0 : offset points to beginning of headers. space is the
amount of space missing that is required to be able to rewrite
the headers
b) space > 0 : offset points to beginning of whitespace that can
be removed. space is the amount of data that can be removed from
there. note that the message may contain more whitespace
elsewhere. */
};
struct mbox_sync_mail_context {
unsigned int last_uid_value_start_pos;
};
struct mbox_sync_context {
int write_fd;
struct mail_index_transaction *t;
/* header state: */
/* mail state: */
/* per-mail pool */
/* used for mails[].keywords */
/* global flags: */
};
struct mbox_sync_mail_context *ctx);
const struct mbox_sync_mail *mail);
struct mbox_sync_mail_context *mail_ctx,
struct mail_index_view *list_view,
struct mail_index_transaction *trans,
#endif