Bug 507347

Summary: KMail hangs on startup and consumes CPU when an autosaved draft contains broken external image links.
Product: [Applications] kmail2 Reporter: Martin <martin.privat>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 6.4.3   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Message that caused problem

Description Martin 2025-07-22 08:47:24 UTC
Created attachment 183416 [details]
Message that caused problem

When KMail attempts to load an autosaved email draft that contains external image links (e.g., in HTML content) which are no longer accessible (e.g., return HTTP 404 Not
  Found or 400 Bad Request), KMail hangs indefinitely on startup, consumes significant CPU resources, and does not display its main window.


STEPS TO REPRODUCE
1. Stop kmail
2. Put attached file to .local/share/kmail2/autosave
3. Start kmail

OBSERVED RESULT
kmail doesn't open main window

SOFTWARE/OS VERSIONS
KDE Plasma Version: 6.4.3
KDE Frameworks Version: 6.16.0
Qt Version: 6.9.1