-
Notifications
You must be signed in to change notification settings - Fork 508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect Message Date and Time - Messages Out of Order #3380
Comments
Unfortunately not. We'll remove this option from Mail Settings and allow to change it only via the parameter in .env file: It's recommended to use it only if you need to import past emails from your mail server. |
It does not need to be hidden in an environment variable and can still be useful if either FreeScout or the mail server is offline. Using the fetch time is likely to cause confusion if the fetch is delayed for any reason. Is it possible to parse the headers and simply choose the earliest date and time? |
No. Sender's mail server may specify absolutely any date in it's headers. If this feature will continue causing troubles we'll remove it completely. |
It is an important feature and there are many possible solutions.
The most relevant date and time is when the recipient's mail server received the email. If the IMAP server is well known, it can be automatically detected based on the fetch settings and the proper header can be extracted. |
@freescout-helpdesk I can kind of understand why you disabled the option and I'm not suggesting to change the current behaviour (datetime displayed in UI = fetch time). However, it could really be useful to be able to quickly see one of the datetimes from the headers, even knowing it could be wrong. I say "one of" because of course there are multiple we could choose from. The Sender Time Zone module already does something similar and uses the It seems to me like using the topmost I think this is also what @lawfulsoftware meant with "The most relevant date and time is when the recipient's mail server received the email". Personally I would avoid looking for headers added by "reliable" email services though (because it involves inspecting domain names, which can change quickly or can be spoofed, and who decides which services are reliable?). Similar for detecting the recipient mail server, which I don't think is necessary anyway as the headers are ordered. Trying to select the "best" date from the headers based on some rules also gets complicated quickly, and again, I think it can be much simpler than that. I would be interested to hear your thoughts on this :) |
It can be done via a custom module. |
1.8.97 (Docker 1.17.25)
A reply to an email appears before the original email. The original email showed "1 min from now" (i.e., in the future).
The email headers include the following:
I suspect that the sender's system clock is somehow incorrect. Outlook correctly displays the time 13:49 PDT however FreeScout shows the message time as 13:56 PDT which explains why our reply at 13:54 PDT appears before the original email.
FreeScout is set to "Use date and time from mail headers". Can FreeScout use a more reliable time from the headers?
The text was updated successfully, but these errors were encountered: