index-mail.h revision 33d63688ed8b26dc333e3c2edbfb2fe6e412604d
1bdda5c0c30463160c47151537e6bb2c6c994841Timo Sirainen int header_data_cached, header_data_cached_contiguous;
33d63688ed8b26dc333e3c2edbfb2fe6e412604dTimo Sirainen const char *envelope, *body, *bodystructure, *uid_string;
645f258ea29afaf09b673fc65d1bd788dfec8db8Timo Sirainen struct message_part_envelope_data *envelope_data;
e8a59a1671127f87e2d22f42e84c572f28299d81Timo Sirainen const char *const *wanted_headers;
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenvoid index_mail_init(struct index_transaction_context *t,
e8a59a1671127f87e2d22f42e84c572f28299d81Timo Sirainen const char *const wanted_headers[]);
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[]);
644268f7848a7c4221146d0b11feb8ed5bbed233Timo Sirainenint index_mail_parse_header(struct message_part *part,
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,
96541d31299bb40b5a6efdbf9b4cb3d4f4b4a069Timo Sirainenint index_mail_parse_headers(struct index_mail *mail);
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[]);
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenconst struct mail_full_flags *index_mail_get_flags(struct mail *_mail);
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenconst struct message_part *index_mail_get_parts(struct mail *_mail);
8fcff4c5b52f24d9c681805fdf06b486f1d0fcbeTimo Sirainentime_t index_mail_get_received_date(struct mail *_mail);
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainentime_t index_mail_get_date(struct mail *_mail, int *timezone);
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenuoff_t index_mail_get_size(struct mail *_mail);
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenstruct istream *index_mail_init_stream(struct index_mail *mail,
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenconst char *index_mail_get_special(struct mail *_mail,
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenchar *index_mail_get_cached_string(struct index_mail *mail,
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenuoff_t index_mail_get_cached_uoff_t(struct index_mail *mail,
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenuoff_t index_mail_get_cached_virtual_size(struct index_mail *mail);