diff options
Diffstat (limited to 'camel/providers/local/camel-maildir-summary.c')
-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 |