Mercurial > dovecot > original-hg > dovecot-1.2
changeset 8695:e296435586c1 HEAD
dbox: INTERNALDATE and save date was returned wrong for converted maildir files.
Patch by Jose Celestino.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 29 Jan 2009 19:25:02 -0500 |
parents | d564ff619baf |
children | 20345491824c |
files | src/lib-storage/index/dbox/dbox-file-maildir.c |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ 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,