diff options
author | Milan Crha <mcrha@redhat.com> | 2015-10-20 09:31:02 +0200 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2015-10-20 09:31:02 +0200 |
commit | f1044d6e2d3c5f48c500a8670d025a4125b0dbdc (patch) | |
tree | 30c1abce80dea0c387ca0985129f6763df25fa2a | |
parent | e543812e74724f76bdf7a11d044908844d5c27df (diff) | |
download | evolution-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.c | 6 |
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 |