]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Make index_mail_want_cache() global
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 19 Feb 2018 13:43:31 +0000 (15:43 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 19 Feb 2018 13:43:31 +0000 (15:43 +0200)
src/lib-storage/index/index-mail.c
src/lib-storage/index/index-mail.h

index f1a7965895f6d59830ced4cedd0754756aad0f51..1cd051250e6add7c0f2a0bcea23faff446101ab1 100644 (file)
@@ -815,8 +815,7 @@ index_mail_body_parsed_cache_bodystructure(struct index_mail *mail,
        }
 }
 
-static bool
-index_mail_want_cache(struct index_mail *mail, enum index_cache_field field)
+bool index_mail_want_cache(struct index_mail *mail, enum index_cache_field field)
 {
        struct mail *_mail = &mail->mail.mail;
        enum mail_fetch_field fetch_field;
index f8438a9d60ccc0ca61e15c35c5c8e28d43ebb61a..2cd80c6aee7e43c0019ebe5da77a7648dbd45ebf 100644 (file)
@@ -256,6 +256,7 @@ bool index_mail_get_cached_bodystructure(struct index_mail *mail,
                                         const char **value_r);
 const uint32_t *index_mail_get_vsize_extension(struct mail *_mail);
 
+bool index_mail_want_cache(struct index_mail *mail, enum index_cache_field field);
 void index_mail_cache_add(struct index_mail *mail, enum index_cache_field field,
                          const void *data, size_t data_size);
 void index_mail_cache_add_idx(struct index_mail *mail, unsigned int field_idx,