mirror of
https://github.com/d99kris/nmail.git
synced 2026-04-27 02:06:00 +03:00
[GH-ISSUE #54] [Bug] Messages are sorted according to time on the sending machine, not server #51
Labels
No labels
bug
enhancement
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nmail#51
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Kabouik on GitHub (Sep 16, 2020).
Original GitHub issue: https://github.com/d99kris/nmail/issues/54
Originally assigned to: @d99kris on GitHub.
Or are they?
I just scanned a document on a photocopier that sends an email with the attachment to the user. The email immediately showed up in nmail, but not on top:
This is the highlighted email here, and it was 13:59 at the time the screenshot was taken (meaning the first message was already there since half an hour). I checked the time on the photocopier: 12:08, which matches surprisingly well the 13:08 for the email it sent. There must be some summer/winter time conversion in place.
Wouldn't it be expected that emails are sorted according to the time on the server they have travelled through, instead of the time on the sending machine? Or is it actually already what nmail does? In that case, this would mean that the issue is in the way the photocopier is set up in my working environment, like perhaps the machine is its own server, but I have no way to checking that so I prefer asking here in case this would be a nmail bug. Else, sorry for the noise!
@d99kris commented on GitHub (Sep 16, 2020):
I think nmail currently uses timestamp from the email header itself (i.e. whatever the sending machine/application put in the raw email). It should be possible to use the timestamp determined by the email server instead. Let me do some research into this and update here again.
@Kabouik commented on GitHub (Sep 16, 2020):
Thanks. I admit I do not know how it should be done and if there is a standard for emails in general, but using the timestamps from the header sounds like an issue if it is determined by the time on the sending machine. One could send emails with time set in the past on purpose, and then claim the email was sent long before, and nmail couldn't prove that wrong.
@d99kris commented on GitHub (Jan 12, 2021):
Support for using server-side timestamps has been added in above commit. The functionality is disabled by default, and can be enabled by editing
~/.nmail/main.confand settingserver_timestamps=1.The reason it is not enabled by default is that it causes messages imported to a server to show the date of import, rather than the message's original (internal) timestamp.