[evolution-data-server/gnome-3-18] Bug 756842 - [Maildir] Do not overwrite received date on the message info
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-3-18] Bug 756842 - [Maildir] Do not overwrite received date on the message info
- Date: Tue, 20 Oct 2015 07:30:21 +0000 (UTC)
commit f1044d6e2d3c5f48c500a8670d025a4125b0dbdc
Author: Milan Crha <mcrha redhat com>
Date: Tue Oct 20 09:31:02 2015 +0200
Bug 756842 - [Maildir] Do not overwrite received date on the message info
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 2831bfd..04e2c31 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]