]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
When saving new messages, make sure we parse the "Date" header so we can
authorTimo Sirainen <tss@iki.fi>
Thu, 29 May 2008 23:54:06 +0000 (02:54 +0300)
committerTimo Sirainen <tss@iki.fi>
Thu, 29 May 2008 23:54:06 +0000 (02:54 +0300)
add "date.sent" to cache file even if "hdr.Date" isn't added.

--HG--
branch : HEAD

src/lib-storage/index/index-mail-headers.c

index 22907c3a18f9958ecd01c4449c234a185375ebb9..640bfe82c62ef73d23f57f7db665bd658ec1737b 100644 (file)
@@ -235,7 +235,8 @@ void index_mail_parse_header_init(struct index_mail *mail,
                }
        }
 
-       if ((mail->data.cache_fetch_fields & MAIL_FETCH_DATE) != 0) {
+       if ((mail->data.cache_fetch_fields & MAIL_FETCH_DATE) != 0 ||
+           mail->data.save_sent_date) {
                array_idx_set(&mail->header_match,
                              get_header_field_idx(mail->ibox, "Date"),
                              &mail->header_match_value);