Bug 461958 - [possibly overflow] Date of email shown as year -4714
Summary: [possibly overflow] Date of email shown as year -4714
Status: REPORTED
Alias: None
Product: kmail2
Classification: Applications
Component: message list (show other bugs)
Version: 5.21.1
Platform: Other Linux
: NOR critical
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-17 18:02 UTC by coding-matter
Modified: 2023-11-27 10:56 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot of error (3.81 KB, image/png)
2022-11-17 18:02 UTC, coding-matter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description coding-matter 2022-11-17 18:02:11 UTC
Created attachment 153842 [details]
Screenshot of error

STEPS TO REPRODUCE
1. Recieve email from a IMAP server (happened from multiple IMAP server)

OBSERVED RESULT
When the `message list` `aggression` is set as `activity by date, threaded`, sometimes a random email will be shown as some -4000 year as attached picture, and they will be shown as (No Subject), while opening them shows subject.
Restart Kmail usually solves the issue.
[Why I mark it as critical]
It seems that Kmail's wrong behavior will effect the IMAP server. Emails that are correctly shown on my phone will become missing (because it becomes some email from 6000 years ago and not get synced) when I open the Kmail and trigger the bug. This means that I have to turn off my desktop before I leave home otherwise I will lost access to random email until I get back home.

EXPECTED RESULT
Show email in correct email.

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 36
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.6
Kernel Version: 6.0.8-200.fc36.x86_64 (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 15,6 GiB of RAM
Graphics Processor: AMD Radeon RX 5700
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7C91
System Version: 1.0

ADDITIONAL INFORMATION
Comment 1 John Veitch 2023-11-22 13:52:12 UTC
I have the same problem with the following system:

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 23.04
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.8
KMail version 5.23.3
Comment 2 Laurent Montel 2023-11-22 17:02:37 UTC
Hi,
Could you provide an email example ?
Perhaps there is a problem with parsing date.
You can send me in private email if you want.
Regards
Comment 3 coding-matter 2023-11-23 11:12:46 UTC
(In reply to Laurent Montel from comment #2)

Hi, as my comment, restarting KMail, or even only switching the Sorting option of Message List in View menu will somehow fix the issue and put the email that is parsed wrong back to its place, thus I don't have a email that is going wrong atm. I'll try to send you one next time this issue appears.
Comment 4 John Veitch 2023-11-27 10:56:33 UTC
(In reply to coding-matter from comment #3)
> (In reply to Laurent Montel from comment #2)
> 
> Hi, as my comment, restarting KMail, or even only switching the Sorting
> option of Message List in View menu will somehow fix the issue and put the
> email that is parsed wrong back to its place, thus I don't have a email that
> is going wrong atm. I'll try to send you one next time this issue appears.

Thanks for this advice, it also fixes it (temporarily) for me too. I note that this problem only seems to happen when connecting to the Exchange server for Office 365.