index-mail.h revision 645f258ea29afaf09b673fc65d1bd788dfec8db8
1bdda5c0c30463160c47151537e6bb2c6c994841Timo Sirainen int header_data_cached, header_data_cached_contiguous;
645f258ea29afaf09b673fc65d1bd788dfec8db8Timo Sirainen struct message_part_envelope_data *envelope_data;
6389aeec8c26b585e583c364b48ad12adf741898Timo Sirainen unsigned int idx_seq;
e8a59a1671127f87e2d22f42e84c572f28299d81Timo Sirainen const char *const *wanted_headers;
e8a59a1671127f87e2d22f42e84c572f28299d81Timo Sirainenvoid index_mail_init(struct index_mailbox *ibox, struct index_mail *mail,
e8a59a1671127f87e2d22f42e84c572f28299d81Timo Sirainen const char *const wanted_headers[]);
6389aeec8c26b585e583c364b48ad12adf741898Timo Sirainenint index_mail_next(struct index_mail *mail, struct mail_index_record *rec,
e8a59a1671127f87e2d22f42e84c572f28299d81Timo Sirainenvoid index_mail_deinit(struct index_mail *mail);
6789ed17e7ca4021713507baf0dcf6979bb42e0cTimo Sirainenvoid index_mail_parse_header_init(struct index_mail *mail,
1bdda5c0c30463160c47151537e6bb2c6c994841Timo Sirainen const char *const headers[]);
e8a59a1671127f87e2d22f42e84c572f28299d81Timo Sirainenvoid index_mail_parse_header(struct message_part *part,
5bc4a5fd9a421f4c5763e03c0449479cedcf9f06Timo Sirainen struct message_header_line *hdr, void *context);
1bdda5c0c30463160c47151537e6bb2c6c994841Timo Sirainenint index_mail_cache_transaction_begin(struct index_mail *mail);
1bdda5c0c30463160c47151537e6bb2c6c994841Timo Sirainenvoid index_mail_cache_add(struct index_mail *mail, enum mail_cache_field field,
1bdda5c0c30463160c47151537e6bb2c6c994841Timo Sirainenint index_mail_open_stream(struct index_mail *mail, uoff_t position);
645f258ea29afaf09b673fc65d1bd788dfec8db8Timo Sirainenint index_mail_parse_headers(struct index_mail *mail, int get_parts);
1bdda5c0c30463160c47151537e6bb2c6c994841Timo Sirainenvoid index_mail_headers_init(struct index_mail *mail);
1bdda5c0c30463160c47151537e6bb2c6c994841Timo Sirainenvoid index_mail_headers_init_next(struct index_mail *mail);
1bdda5c0c30463160c47151537e6bb2c6c994841Timo Sirainenvoid index_mail_headers_close(struct index_mail *mail);
1bdda5c0c30463160c47151537e6bb2c6c994841Timo Sirainenconst char *index_mail_get_header(struct mail *_mail, const char *field);
1bdda5c0c30463160c47151537e6bb2c6c994841Timo Sirainenstruct istream *index_mail_get_headers(struct mail *_mail,
1bdda5c0c30463160c47151537e6bb2c6c994841Timo Sirainen const char *const minimum_fields[]);