summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2015-10-20 09:31:02 +0200
committerMilan Crha <mcrha@redhat.com>2015-10-20 09:31:02 +0200
commitf1044d6e2d3c5f48c500a8670d025a4125b0dbdc (patch)
tree30c1abce80dea0c387ca0985129f6763df25fa2a
parente543812e74724f76bdf7a11d044908844d5c27df (diff)
downloadevolution-data-server-f1044d6e2d3c5f48c500a8670d025a4125b0dbdc.tar.gz
Bug 756842 - [Maildir] Do not overwrite received date on the message info
-rw-r--r--camel/providers/local/camel-maildir-summary.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/camel/providers/local/camel-maildir-summary.c b/camel/providers/local/camel-maildir-summary.c
index 2831bfd13..04e2c3100 100644
--- a/camel/providers/local/camel-maildir-summary.c
+++ b/camel/providers/local/camel-maildir-summary.c
@@ -328,8 +328,10 @@ message_info_new_from_header (CamelFolderSummary *s,
mdi = (CamelMaildirMessageInfo *)(mi = info);
}
- /* with maildir we know the real received date, from the filename */
- mdi->info.info.date_received = strtoul (camel_message_info_uid (mi), NULL, 10);
+ if (mdi->info.info.date_received <= 0) {
+ /* with maildir we know the real received date, from the filename */
+ mdi->info.info.date_received = strtoul (camel_message_info_uid (mi), NULL, 10);
+ }
if (mds->priv->current_file) {
#if 0