Mercurial > dovecot > original-hg > dovecot-1.2
changeset 7574:346f172c8c71 HEAD
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.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 30 May 2008 02:54:06 +0300 |
parents | de08cc81da73 |
children | 79857a116d28 |
files | src/lib-storage/index/index-mail-headers.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/index-mail-headers.c Fri May 30 02:09:20 2008 +0300 +++ b/src/lib-storage/index/index-mail-headers.c Fri May 30 02:54:06 2008 +0300 @@ -235,7 +235,8 @@ } } - 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);