mbox-index.c revision dec504e26667fb97d47f6145e5f65c0bc1c615ea
/* Copyright (C) 2002 Timo Sirainen */
#include "lib.h"
#include "iobuffer.h"
#include "mbox-index.h"
#include "mail-index-util.h"
static MailIndex mbox_index;
{
}
{
unsigned int i;
flags = 0;
for (i = 0; i < len; i++) {
switch (value[i]) {
case 'A':
flags |= MAIL_ANSWERED;
break;
case 'F':
flags |= MAIL_FLAGGED;
break;
case 'D':
flags |= MAIL_DELETED;
break;
case 'R':
break;
case 'T':
flags |= MAIL_DRAFT;
break;
}
}
return flags;
}
void *context)
{
/* Pretty much copy&pasted from popa3d by Solar Designer */
switch (*name) {
case 'R':
case 'r':
}
break;
case 'D':
case 'd':
if (name_len == 12)
else if (name_len == 4) {
/* Received-header contains date too,
and more trusted one */
}
break;
case 'M':
case 'm':
if (name_len == 10) {
/* Received-header contains unique ID too,
and more trusted one */
}
break;
case 'S':
case 's':
/* update message flags */
}
break;
case 'X':
case 'x':
/* Let the local delivery agent help generate unique ID's but
don't blindly trust this header alone as it could just as
easily come from the remote. */
if (name_len == 13)
else if (name_len == 8 &&
/* update message flags */
}
break;
}
if (fixed)
}
{
unsigned char *data;
pos = 0;
if (data[0] == '\n') {
return TRUE;
}
if (data[0] != '\r')
return FALSE;
pos++;
}
return FALSE;
return TRUE;
}
}
/* end of file */
return TRUE;
}
{
int len;
}
{
}
static MailIndex mbox_index = {
};