[Users] [Bug 4821] New: If the Mail folder is on another partition, folder chmod settings are not applied to draft and queue
noreply at thewildbeast.co.uk
noreply at thewildbeast.co.uk
Tue Jul 30 23:37:12 UTC 2024
https://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=4821
Bug ID: 4821
Summary: If the Mail folder is on another partition, folder
chmod settings are not applied to draft and queue
Product: Claws Mail
Version: 4.3.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P3
Component: Folders/MH
Assignee: users at lists.claws-mail.org
Reporter: mnieuw at zap.a2000.nl
Composing a msg and saving it to draft or (for later sending) to queue always
gives the msg a mode of 600, instead of what is specified in the folder's
properties. This is because in mh.c/mh_add_msgs() the creation of a hard link
fails (hard links are not possible to different partition), and then
file-utils.c/copy_file() is used instead. But that function does not have
parameters to use for chmod, so always sets the file mode to 600 (rw for user).
Maybe fix: add two fields to _MsgFileInfo, one gboolean to say chmod must be
done or not, one gint with the chmod value. Set these fields normally to zero,
except in the bug's case. Pass the fields also in similar extra fields in
MsgFileInfo . And propagate those down to copy_file(), so it can make a
decision which chmod to use.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Users
mailing list