[Bug 164997] kmail opens attachments RO and saves attachements RO which is hugely annoying and should be an option

davidblunkett dav1dblunk3tt at hotmail.com
Sun Jun 29 23:17:01 BST 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=164997         




------- Additional Comments From dav1dblunk3tt hotmail com  2008-06-30 00:17 -------
Ok - in kmail when I open an attachement it is always RO.  I believe this is hardwired into kmail (For the last several years I have been hacking out this kludge but currently can't build kdepim because of a missing dependancy in my distro).

See lines circs 1714 in kmreaderwin.cpp:

//-----------------------------------------------------------------------------
QString KMReaderWin::writeMessagePartToTempFile( KMMessagePart* aMsgPart,
                                                 int aPartNum )
{
...
  mTempFiles.append( fname );
  // make file read-only so that nobody gets the impression that he might
  // edit attached files (cf. bug #52813)
  ::chmod( QFile::encodeName( fname ), S_IRUSR );

  return fname;
}



[Incidently when I save an attachment or drag it to the desktop it is always RO despite having followed the suggestions in bug 79685, my umask is 022 and I still get RO.]



More information about the Kdepim-bugs mailing list