-
Notifications
You must be signed in to change notification settings - Fork 288
fix(imap): use message header date for timestamps #11980
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
base: main
Are you sure you want to change the base?
fix(imap): use message header date for timestamps #11980
Conversation
Signed-off-by: dhairyasquad73 <dhairya.jangir.s73@kalvium.community>
|
@ChristophWurst could you please check this one! |
|
@kesselb could you please review this one |
|
Thanks for your pr 🙏 Relying on the date header instead of, or in addition to, the IMAP date is something I've also noticed in Thunderbird, and I think that's a reasonable approach. |
|
Failing test: |
i'll fix this! |
Co-authored-by: Daniel <mail@danielkesselberg.de> Signed-off-by: dhairya <dhairya.jangir.s73@kalvium.community>
Co-authored-by: Daniel <mail@danielkesselberg.de> Signed-off-by: dhairya <dhairya.jangir.s73@kalvium.community>
@kesselb To fix this, I will modify |
Fixes
Ensures message timestamps mirror the actual send/receive time rather than the cache file’s modification time
(Fixes #912)
What’s Changed
ImapMessageFetcher.php
Resolves the canonical message timestamp by:
Dateheader`INTERNALDATEif the header is missing or invalidThe final resolved timestamp is cached and passed to
IMAPMessageThis ensures
dateInt(and all UI components depending on it) reflects the true email date, even after:ImapMessageFetcherTest.php
Adds PHPUnit test coverage for the new resolution logic
Confirms:
Testing