mbox-sync-update.c revision 88553367d677170a4b703b9d52aac9eabf91c656
#include "lib.h"
#include "ioloop.h"
#include "buffer.h"
#include "str.h"
#include "message-parser.h"
#include "index-storage.h"
#include "mbox-sync-private.h"
const struct mbox_flag_type *flags_list)
{
int i;
for (i = 0; flags_list[i].chr != 0; i++) {
}
}
{
int i;
if (diff == 0) {
} else {
/* FIXME: if (diff < ctx->space && pos < ctx->offset) then
space from there. update header_last_change accordingly.
(except pos and offset can't be compared directly) */
for (i = 0; i < MBOX_HDR_COUNT; i++) {
}
if (diff < 0)
else {
}
}
}
const struct mbox_flag_type *flags_list)
{
unsigned char *data;
/* how many bytes do we need? */
need++;
}
/* how many bytes do we have now? */
break;
/* see if this is unknown flag for us */
for (i = 0; flags_list[i].chr != 0; i++) {
break;
}
if (flags_list[i].chr != 0)
have++;
else {
/* save this one */
}
}
/* @UNSAFE */
}
}
{
// FIXME
}
{
int i, have_keywords;
if (new_hdr_size > 0 &&
/* broken header - doesn't end with \n. fix it. */
}
}
//FIXME:keywords_append(ctx, all_keywords);
}
}
}
}
for (i = 0; i < INDEX_KEYWORDS_BYTE_COUNT; i++) {
break;
}
}
}
}
}
}
{
}
}
{
}
}
{
}
{
const char *hdr, *p;
if (p == NULL) {
/* shouldn't really happen, but allow anyway.. */
} else {
}
}
{
return;
/* update uid-last field in X-IMAPbase */
t_push();
//FIXME:keywords_append(ctx, all_keywords);
t_pop();
}
{
return;
t_push();
t_pop();
}
{
const struct mail_index_sync_rec *sync;
if (size != 0) {
for (i = 0; i < size; i++) {
continue;
}
/* keep our old recent flag. especially because we use it
negatively as non-recent */
(old_flags & MAIL_RECENT);
if ((old_flags & STATUS_FLAGS_MASK) !=
if ((old_flags & XSTATUS_FLAGS_MASK) !=
INDEX_KEYWORDS_BYTE_COUNT) != 0)
} else {
}
}
}
const struct mbox_sync_mail *mail)
{
}
}
INDEX_KEYWORDS_BYTE_COUNT) != 0) {
}
}