]> 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>
Tue, 20 Feb 2018 08:21:10 +0000 (10:21 +0200)
src/lib-storage/index/index-mail.c
src/lib-storage/index/index-mail.h

index bd70e0519573040bd1dc9a2422871f161717e762..2e546f628e1147b9b1defff9e29a0c8ed5eca39a 100644 (file)
@@ -814,8 +814,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 c1e9c2de1a89f2773f664deaa73e9b285c985a93..9dc652cdcfb9f99183c3f0a2d0ce86eb0bfcbf8b 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,