Summary: | kmail does not honour umask on saving emails | ||
---|---|---|---|
Product: | [Unmaintained] kmail | Reporter: | Jörg Steffens <joerg.steffens> |
Component: | mbox | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
Patch for setting file permissions of saved email messages
2. veriosn of the patch, adding and using the function KMail::Util::getWritePermissions |
Description
Jörg Steffens
2010-03-24 14:38:39 UTC
Created attachment 42227 [details]
Patch for setting file permissions of saved email messages
use the disregardUmask option to define, if file permission should be restrictive or the umask settings should be used.
patched version for openSUSE 11.2 can be found at http://download.opensuse.org/repositories/home:/steffens:/branches:/openSUSE:/11.2:/Update/standard/ Thank you for the patch, Jörg! One little nitpick: The new code is duplicated, it would be much nicer to put it into a helper function, for example in kmail/util.cpp Can you please submit an updated version of the patch to reviewboard.kde.org? See http://techbase.kde.org/Contribute/Send_Patches for details. Created attachment 42751 [details]
2. veriosn of the patch, adding and using the function KMail::Util::getWritePermissions
I agree. I summit a new version of this patch and will also provide it via reviewboard.
added at http://reviewboard.kde.org/r/3601/ SVN commit 1116206 by tmcguire: Honor umask setting when saving mails. BUG: 232001 Thanks to Jörg Steffens <joerg.steffens at dass-it dot de> for the patch! I modified the patch slightly, to take into account duplicated code in viewer_p.cpp and Ingo's suggestions. M +3 -1 kmail/filterlog.cpp M +5 -5 kmail/kmcommands.cpp M +12 -0 messageviewer/util.cpp M +7 -0 messageviewer/util.h M +6 -6 messageviewer/viewer_p.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1116206 |