dovecot-1.1: When saving new messages, make sure we parse the "D...

dovecot at dovecot.org dovecot at dovecot.org
Fri May 30 02:54:10 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/346f172c8c71
changeset: 7574:346f172c8c71
user:      Timo Sirainen <tss at iki.fi>
date:      Fri May 30 02:54:06 2008 +0300
description:
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.

diffstat:

1 file changed, 2 insertions(+), 1 deletion(-)
src/lib-storage/index/index-mail-headers.c |    3 ++-

diffs (13 lines):

diff -r de08cc81da73 -r 346f172c8c71 src/lib-storage/index/index-mail-headers.c
--- 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 @@ void index_mail_parse_header_init(struct
 		}
 	}
 
-	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);


More information about the dovecot-cvs mailing list