mbox-mail.c revision b2ecd50bb98c44816cb07c17aa17fae2b425f941
/* Copyright (C) 2003 Timo Sirainen */
#include "lib.h"
#include "istream.h"
#include "index-mail.h"
#include "mbox-storage.h"
#include "mbox-file.h"
#include "istream-raw-mbox.h"
#include <fcntl.h>
#include <unistd.h>
{
// FIXME: lock the file. sync if needed.
return -1;
return 0;
}
{
(void)index_mail_get_flags(_mail);
}
{
(void)index_mail_get_received_date(_mail);
return data->received_date;
if (mbox_mail_seek(mail) < 0)
return (time_t)-1;
sizeof(data->received_date));
}
return data->received_date;
}
static const char *
{
if (field == MAIL_FETCH_FROM_ENVELOPE) {
if (mbox_mail_seek(mail) < 0)
return NULL;
}
}
struct message_size *hdr_size,
struct message_size *body_size)
{
struct istream *raw_stream;
if (mbox_mail_seek(mail) < 0)
return NULL;
// FIXME: need to hide the headers
(uoff_t)-1);
}
}
0, 0, 0, 0, 0, 0,
};