[kmail2] [Bug 451036] New: attachment: tempfile should be readonly

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Wed Mar 2 13:19:15 GMT 2022


            Bug ID: 451036
           Summary: attachment: tempfile should be readonly
           Product: kmail2
           Version: 5.15.3
          Platform: Debian stable
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: commands and actions
          Assignee: kdepim-bugs at kde.org
          Reporter: adi at cg.tuwien.ac.at
  Target Milestone: ---

When opening an attachment (like an office document), the document gets saved
into a temporary location but with read-write permissions. As a consequence,
software like libreoffice opens the file for editing. If the document would be
read-only permissionwise, libreoffice would open the file read-only.

1. Click on an attachment (office document)
2. Choose "Open"
3. libreoffice opens the document

The file is opened in libreoffice in read-write mode; all changes to the file
are saved in the temporary location.

The file should be saved read-only (i.e. with 0400 instead of 0600) in the
temporary location as that makes libreoffice open the file in read-only mode
for viewing only. If the user wants to edit the document, libreoffice asks the
user to save the file first.

You are receiving this mail because:
You are the assignee for the bug.

More information about the Kdepim-bugs mailing list