Bug 95320 - Incorrect behavior with various Mail folder permissions
Summary: Incorrect behavior with various Mail folder permissions
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.7.1
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-17 08:11 UTC by David Baron
Modified: 2015-04-12 10:14 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Baron 2004-12-17 08:11:25 UTC
Version:           1.7.1 (using KDE 3.3.1,  (3.1))
Compiler:          gcc version 3.3.5 (Debian 1:3.3.5-3)
OS:                Linux (i686) release 2.6.9-1-686-smp

(This may touch various other bugs as well.)

I have several logins with their Mail folder as a symlink to on Mail folder. Kmail in any login other than root or the owner of the Mail folder will see No subject/Blank emails. The actual content is not destroyed.

How should this work?

If the login has group read permission, he should be able to read the mails correctly.

If the login has group read/write permission, he should be able to read, move, delete the mails correctly.

If not, then NOTHING should be displayed and an error box or text in the content pane simply saying "Permission denied" or similar be displayed.
Comment 1 Tom Albers 2005-02-17 23:08:05 UTC
Could you check if the user is allowed to access the folder and subfolders (group x-bit), if the group bits are set to rwx and the user is part of the group it should work. I'll implement a nice error box about missing permissions soon...
Comment 2 David Baron 2005-02-18 08:39:10 UTC
Group permissions are rwx on my login.

They should be set on other logins by a sudo (other logins did not have sudo permissions so this was not occurring).

My point is that KMail, Kabc, Konqueror, etc., should leave the permissions alone and when saving messages, entries, etc., follow them. Assume the user set this up for some reason. If incorrect, then the error box will tell him.

This had been working without my sudo startup commands but got rebroken, I believe.
Comment 3 Tom Albers 2005-02-21 19:40:38 UTC
If this is about attachments being saved with a fixed umask, then there is an other report about this. Let me know.
Comment 4 David Baron 2005-02-21 21:04:14 UTC
Not relevant here.
Comment 5 David Baron 2005-03-02 10:22:23 UTC
Second login which has group read/write permissions to the messages cannot read them. Selected message gets changed to "no subject" and blank.

If I then start Kmail as the owning user, the messages are just fine.

Sudos on login to assure user1:user1 rw ownership are successfully run. User2 is in user1 group.

Note that when Kmail is started as a "different" user1, a kdesu error message appears but Kmail runs OK. This might have been have due to a root owned instance in a previous but non-logged-on session. (I have since gotten rid of this.)
Comment 6 Vincent Panel 2005-06-06 03:48:10 UTC
I agree here : kmail shouldn't mess with folder or files permissions. I tried to run kmail using a specific umask, but kmail disregard it totally for certain files.

Reproduction :
- $ umask 0002
- $ kmail
- create a folder named "test"
- look at the permissions for .test*
- look at the permissions for the test folder and its subfolders

Results for permissions :
- "test" folder = 600
- .test.index = 600
- test/cur, test/new and test/tmp = 600
- all other files follow umask (.test.index.ids, .test.index.sorted and files in "cur", "new" and "tmp")
Comment 7 Laurent Montel 2015-04-12 10:14:23 UTC
Thank you for taking the time to file a bug report.

KMail2 was released in 2011, and the entire code base went through significant changes. We are currently in the process of porting to Qt5 and KF5. It is unlikely that these bugs are still valid in KMail2.

We welcome you to try out KMail 2 with the KDE 4.14 release and give your feedback.