dovecot-2.2: imapc: Return INTERNALDATE as save-date (better tha...

dovecot at dovecot.org dovecot at dovecot.org
Tue Jan 22 12:59:43 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/aa60f457a23f
changeset: 15671:aa60f457a23f
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jan 22 12:58:56 2013 +0200
description:
imapc: Return INTERNALDATE as save-date (better than error).

diffstat:

 src/lib-storage/index/imapc/imapc-mail.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff -r 1706b3490966 -r aa60f457a23f src/lib-storage/index/imapc/imapc-mail.c
--- a/src/lib-storage/index/imapc/imapc-mail.c	Tue Jan 22 12:49:04 2013 +0200
+++ b/src/lib-storage/index/imapc/imapc-mail.c	Tue Jan 22 12:58:56 2013 +0200
@@ -100,8 +100,8 @@
 	struct index_mail_data *data = &mail->data;
 
 	if (data->save_date == (time_t)-1) {
-		/* FIXME */
-		return -1;
+		/* FIXME: we could use a value stored in cache */
+		return imapc_mail_get_received_date(_mail, date_r);
 	}
 	*date_r = data->save_date;
 	return 0;


More information about the dovecot-cvs mailing list