dovecot-1.2: dbox: INTERNALDATE and save date was returned wrong...

dovecot at dovecot.org dovecot at dovecot.org
Fri Jan 30 02:25:46 EET 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/e296435586c1
changeset: 8695:e296435586c1
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jan 29 19:25:02 2009 -0500
description:
dbox: INTERNALDATE and save date was returned wrong for converted maildir files.
Patch by Jose Celestino.

diffstat:

1 file changed, 3 insertions(+), 4 deletions(-)
src/lib-storage/index/dbox/dbox-file-maildir.c |    7 +++----

diffs (17 lines):

diff -r d564ff619baf -r e296435586c1 src/lib-storage/index/dbox/dbox-file-maildir.c
--- a/src/lib-storage/index/dbox/dbox-file-maildir.c	Tue Jan 27 14:33:48 2009 -0500
+++ b/src/lib-storage/index/dbox/dbox-file-maildir.c	Thu Jan 29 19:25:02 2009 -0500
@@ -93,10 +93,9 @@ const char *dbox_file_maildir_metadata_g
 				return NULL;
 			}
 		}
-		if (key == DBOX_METADATA_RECEIVED_TIME)
-			value = dec2str(st.st_mtime);
-		else
-			value = dec2str(st.st_ctime);
+		value = t_strdup_printf("%lx", (unsigned long)
+					(key == DBOX_METADATA_RECEIVED_TIME ?
+					 st.st_mtime : st.st_ctime));
 		break;
 	case DBOX_METADATA_VIRTUAL_SIZE:
 		if (!maildir_filename_get_size(file->fname,


More information about the dovecot-cvs mailing list