mbox-mail.c revision 63a61b7a739ae0f3f520215137d9c50f94d0f34f
/* Copyright (C) 2003 Timo Sirainen */
#include "lib.h"
#include "istream.h"
#include "index-mail.h"
#include "mbox-storage.h"
#include "mbox-file.h"
#include "mbox-sync-private.h"
#include "istream-raw-mbox.h"
#include <fcntl.h>
#include <unistd.h>
{
const void *data;
return -1;
}
if (mbox_file_open_stream(ibox) < 0)
return -1;
return -1;
}
return 0;
}
{
return index_mail_get_flags(_mail);
/*FIXME:struct index_mail *mail = (struct index_mail *)_mail;
struct index_mail_data *data = &mail->data;
i_assert(_mail->seq <= mail->ibox->mbox_data_count);
(void)index_mail_get_flags(_mail);
if ((mail->ibox->mbox_data[_mail->seq-1] & 1) != 0)
data->flags.flags |= MAIL_RECENT;
return &data->flags;*/
}
{
(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
}
}
0, 0, 0, 0, 0, 0,
};