index-storage.c revision f0557d5fb030645d49866485b0a188e3d71a7b68
/* Copyright (C) 2002 Timo Sirainen */
#include "lib.h"
#include "mail-index.h"
#include "mail-index-util.h"
#include "mail-custom-flags.h"
#include "index-storage.h"
#include <stdlib.h>
#include <unistd.h>
typedef struct _IndexList IndexList;
struct _IndexList {
int refcount;
};
{
}
{
return NULL;
/* compare inodes so we don't break even with symlinks */
}
}
}
return NULL;
}
{
}
return;
}
}
/* shouldn't get here */
i_assert(0);
}
{
static const char *field_names[] = {
"Location",
"Envelope",
"Body",
"Bodystructure",
"MD5",
"MessagePart",
};
char *const *arr;
int i;
return 0;
ret = 0;
if (*arr == '\0')
continue;
for (i = 0; field_names[i] != NULL; i++) {
ret |= 1 << i;
break;
}
}
if (field_names[i] == NULL) {
i_error("Invalid cache field name '%s', ignoring ",
*arr);
}
}
return ret;
}
static MailField get_default_cache_fields(void)
{
if (ret_set)
return ret;
return ret;
}
static MailField get_never_cache_fields(void)
{
if (ret_set)
return ret;
return ret;
}
{
unsigned int messages;
do {
/* open the index first */
break;
}
/* Get the synced messages count */
break;
break;
return ibox;
} while (0);
return NULL;
}
{
}
void *context)
{
}
{
else
return FALSE;
}
const char *custom_flags[])
{
int ret;
switch (ret) {
case 1:
return TRUE;
case 0:
"different custom flags exceeded");
return FALSE;
default:
return mail_storage_set_index_error(ibox);
}
}
{
unsigned int seq;
/* all are recent */
return hdr->messages_count;
}
/* get the first recent message */
return 0;
}