dovecot-1.1: dbox: INTERNALDATE and save date was returned wrong...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Jan 30 02:25:12 EET 2009
details: http://hg.dovecot.org/dovecot-1.1/rev/f97cd7e3acda
changeset: 8137:f97cd7e3acda
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 741b32441131 -r f97cd7e3acda src/lib-storage/index/dbox/dbox-file-maildir.c
--- a/src/lib-storage/index/dbox/dbox-file-maildir.c Tue Jan 27 14:31:18 2009 -0500
+++ b/src/lib-storage/index/dbox/dbox-file-maildir.c Thu Jan 29 19:25:02 2009 -0500
@@ -88,10 +88,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