Version: 1.10.1 (using 4.1.2 (KDE 4.1.2), Kubuntu packages) Compiler: cc OS: Linux (i686) release 2.6.26-5-generic This is similar to bug 79685, in the sense that both deal with attachments getting read-only rights. The difference is that this occurs when attachments are dragged to the desktop, and the disregardUmask=ture option doesn't work. Saving the attachments work as expected.
Reproducible on 1.11.2. When we drag & drop attachment anywhere not just desktop, it has only read permissions but when we save as, it has write permission as well.
I guess the problem is not totally kmail fault: kmail drags a Url list, and when dolphin or plasma drops it, they create read-only files. If kmail uses the right mime type for each attachment, there is another problem: * In plasma, it will try to open the plasmoid to handle the type. For example, an image will open the preview plasmoid. But dows not allow to create a file. * In dolphin, an image mime type is not allowed to drop. You can check it trying to drag&drop the image captured with ksnapshot.
(In reply to comment #1) > Reproducible on 1.11.2. When we drag & drop attachment anywhere not just > desktop, it has only read permissions but when we save as, it has write > permission as well. The same on kmail 1.11.4. When I drag & drop any attachment (I've tried also with png images) from kmail windows to any file manager window, that file will be saved in read-only mode. When I save using the right click menu and "save as" instead permissions are fine. Please correct this, it would be really comfortable if we could just drag attachments out of the windows to save them.
*** Bug 185837 has been marked as a duplicate of this bug. ***
As this is a problem with the drop-target application, I reassign to dolphin.
*** Bug 208986 has been marked as a duplicate of this bug. ***
I get this in 4.4.2 - this has been with us since 3.5 and is really annoying
*** Bug 164997 has been marked as a duplicate of this bug. ***
I don't know why this has been assigned to Dolphin - Dolphin is not involved when dragging between kmail and the desktop -> reassigned to plasma
@ Jaime Torres: But kmail does save the attachments as read-only temporary files? In that case, either plasma and dolphin may just copy the read-only property.
yes, it's simply copying the permissions already there. perhaps kmail should set the permissions to whatever it uses by default for "save as" before starting a drag (and resetting it afterwards). a bit of a hack, perhaps, but i don't see how else we could work around this issue without changing the permissions of all files that are copied into folderview (which would, imho, be a bug in the general case).
I fixed it in 4.9