Mercurial > dovecot > core-2.2
view src/lib-storage/index/index-mail.h @ 990:9c8df18fb2a9 HEAD
Forgot to add
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 21 Jan 2003 07:36:32 +0200 |
parents | |
children | 1222ab408f63 |
line wrap: on
line source
#ifndef __INDEX_MAIL_H #define __INDEX_MAIL_H struct cached_header { struct cached_header *next; size_t name_len; const char *name, *value; }; struct index_mail_data { struct mail_full_flags flags; time_t received_date; uoff_t size; time_t sent_time; int sent_timezone; struct cached_header *headers; struct message_part *parts; char *envelope, *body, *bodystructure; struct message_part_envelope_data *envelope_data; struct mail_index_record *rec; struct istream *stream; struct message_size hdr_size, body_size; unsigned int parse_header:1; unsigned int save_sent_time:1; unsigned int save_envelope:1; unsigned int hdr_size_set:1; unsigned int body_size_set:1; }; struct index_mail { struct mail mail; struct index_mail_data data; pool_t pool; struct index_mailbox *ibox; enum mail_fetch_field wanted_fields; const char *const *wanted_headers; }; void index_mail_init(struct index_mailbox *ibox, struct index_mail *mail, enum mail_fetch_field wanted_fields, const char *const wanted_headers[]); int index_mail_next(struct index_mail *mail, struct mail_index_record *rec); void index_mail_deinit(struct index_mail *mail); void index_mail_init_parse_header(struct index_mail *mail); void index_mail_parse_header(struct message_part *part, const unsigned char *name, size_t name_len, const unsigned char *value, size_t value_len, void *context); #endif