fix(imap): use message header date for timestamps#11980
fix(imap): use message header date for timestamps#11980dhairyajangir wants to merge 10 commits intonextcloud:mainfrom
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 |
|
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
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