From: Timo Sirainen Date: Thu, 29 May 2008 23:54:06 +0000 (+0300) Subject: When saving new messages, make sure we parse the "Date" header so we can X-Git-Tag: 1.1.rc6~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=faa6c140211a8ac8e2f5fcc5bcd79ade640d46a3;p=thirdparty%2Fdovecot%2Fcore.git When saving new messages, make sure we parse the "Date" header so we can add "date.sent" to cache file even if "hdr.Date" isn't added. --HG-- branch : HEAD --- diff --git a/src/lib-storage/index/index-mail-headers.c b/src/lib-storage/index/index-mail-headers.c index 22907c3a18..640bfe82c6 100644 --- a/src/lib-storage/index/index-mail-headers.c +++ b/src/lib-storage/index/index-mail-headers.c @@ -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);