https://bugs.kde.org/show_bug.cgi?id=479951
Steffen Michalek <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #3 from Steffen Michalek <[email protected]> --- I consider the bug to be serious. For more than 3 weeks now, files were randomly deleted from my disk. After installing auditd and consulting an AI, I found the cause of the terrible trouble: STEPS to REPRODUCE and ANALYSIS: (1) After downloading an attachment (file type pdf) in kmail by right click, (2) an dialog appears above the displayed message. (3) Choose "Datei öffnen" (german, meaning "open file"), then okular opens and shows the pdf. (4) The file is in fact saved on disk (confirmed by konsole, dolphin and auditd). (5) After closing okular (all instances), the command `ps aux | grep okular` shows a still pending process: username 97255 0.1 0.3 678904 112768 ? Ssl 18:34 0:00 /usr/lib/x86_64-linux-gnu/libexec/kf6/kioexec --tempfiles okular %U file:///home/username/PATH-OF-DIRS/the_saved_file.pdf username 97708 0.0 0.0 9880 2500 pts/1 S+ 18:36 0:00 grep --color=auto okular (6) Some minute later, the process vanished and so did the file. (7) auditd (command: sudo ausearch -k delete-watch -i | grep the_saved_file) shows, that the already saved file was deleted by the kioexec process. INTERPRETATION Kmail seems to invoke okular with the path and name of the saved file (intended to be saved at this correct location) *as a temporary file*. So okular (or kmail, or dolphin?) thinks, that the very file is to be deleted after viewing it by okular. WORKAORUND (1) Do save the attachment in kmail in the usual manner. (2) Do not open the file using the proposed button, that appears (misleadingly), (3) but open the already saved file outside of kmail (e.g. from dolphin, or from okular itself). IMPORTANCE This bug does not only carry a risk of data loss - it already caused severe losses. I had to invest about 3 hours of my work time together with about 1 hour of work time of collegues in IT. SOFTWARE/OS VERSIONS KMail: 6.5.3 (25.08.3) KDE Frameworks: 6.20.0 Qt: 6.9.2 Ubuntu 25.10 (Wayland) Build ABI: x86_64-little_endian-lp64 Kernel: linux 6.17.0-14-generic -- You are receiving this mail because: You are watching all bug changes.
