]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-imap: imap-bodystructure: Renamed imap_bodystructure_is_plain_7bit() to message_p...
authorStephan Bosch <stephan.bosch@dovecot.fi>
Sun, 23 Oct 2016 17:47:12 +0000 (19:47 +0200)
committerGitLab <gitlab@git.dovecot.net>
Mon, 30 Jan 2017 16:00:26 +0000 (18:00 +0200)
src/lib-imap/imap-bodystructure.c
src/lib-imap/imap-bodystructure.h
src/lib-storage/index/index-mail.c

index 88f865d8ef19f28d1885292242a65e6036b67761..0b5b3e86060e3ac2a9cd98941d3cdd824e847e14 100644 (file)
@@ -473,7 +473,7 @@ static void part_write_body(const struct message_part *part,
        part_write_bodystructure_common(data, str);
 }
 
-bool imap_bodystructure_is_plain_7bit(const struct message_part *part)
+bool message_part_data_is_plain_7bit(const struct message_part *part)
 {
        const struct message_part_data *data = part->data;
 
index 7a24156109c039dd4fe59c9b6c5827d73a65c996..b3d54594abb7ff8f9033e59c3ca1c13d2e2f47e9 100644 (file)
@@ -32,9 +32,9 @@ void message_part_data_parse_from_header(pool_t pool,
        struct message_part *part,
        struct message_header_line *hdr);
 
-/* Returns TRUE if BODYSTRUCTURE is
-   ("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" n n NIL NIL NIL) */
-bool imap_bodystructure_is_plain_7bit(const struct message_part *part)
+/* Returns TRUE if this message part has content-type "text/plain",
+   chaset "us-ascii" and content-tranfer-encoding "7bit" */
+bool message_part_data_is_plain_7bit(const struct message_part *part)
        ATTR_PURE;
 
 /* Write a BODY/BODYSTRUCTURE from given message_part. The message_part->data
index 8a2e1b2791d85e898c976ef43e390750ce0ae6b0..616c687df4c6b1e9239d6c76a403fb386cfc2209 100644 (file)
@@ -644,7 +644,7 @@ static void index_mail_body_parsed_cache_flags(struct index_mail *mail)
                                                _mail->seq, cache_flags_idx);
 
        if (data->parsed_bodystructure &&
-           imap_bodystructure_is_plain_7bit(data->parts) &&
+           message_part_data_is_plain_7bit(data->parts) &&
            (want_cached || want_plain_bodystructure_cached(mail))) {
                cache_flags |= MAIL_CACHE_FLAG_TEXT_PLAIN_7BIT_ASCII;
                /* we need message_parts cached to be able to