Mercurial > dovecot > core-2.2
view src/lib-storage/index/imapc/imapc-mail.h @ 13564:5726f89486a0
imapc: Keep the last fetched message body cached until mailbox is closed.
This primarily helps partial IMAP fetches so each partial fetch doesn't
redownload the message body.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 30 Sep 2011 18:53:09 +0300 |
parents | b6633cb57814 |
children | 00fc1e040603 |
line wrap: on
line source
#ifndef IMAPC_MAIL_H #define IMAPC_MAIL_H #include "index-mail.h" struct imap_arg; struct imapc_untagged_reply; struct imapc_mail { struct index_mail imail; enum mail_fetch_field fetching_fields; unsigned int fetch_count; int fd; buffer_t *body; bool body_fetched; }; extern struct mail_vfuncs imapc_mail_vfuncs; struct mail * imapc_mail_alloc(struct mailbox_transaction_context *t, enum mail_fetch_field wanted_fields, struct mailbox_header_lookup_ctx *wanted_headers); int imapc_mail_fetch(struct mail *mail, enum mail_fetch_field fields); bool imapc_mail_prefetch(struct mail *mail); void imapc_mail_init_stream(struct imapc_mail *mail, bool have_body); void imapc_mail_fetch_update(struct imapc_mail *mail, const struct imapc_untagged_reply *reply, const struct imap_arg *args); #endif