[evolution-data-server] [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] [Maildir] Do not overwrite received date on the message info
- Date: Tue, 20 Oct 2015 07:27:52 +0000 (UTC)
commit 0d1cf50a1063b166090f47a6da589ca0927fcf3b
Author: Milan Crha <mcrha redhat com>
Date: Tue Oct 20 09:27:12 2015 +0200
[Maildir] Do not overwrite received date on the message info
Set Received date from the message ID only if the message itself
doesn't contain Received header, otherwise use the value from
the header, as the other providers do.
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]