[Users] Saving draft doesn't set msg mode as specified in draft folder properties

Paul paul at claws-mail.org
Mon Jul 29 15:33:15 UTC 2024


On Mon, 29 Jul 2024 17:20:41 +0200
Mat via Users <users at lists.claws-mail.org> wrote: 

> If I compose a new msg, and do Message-Save, it ends up in the draft
> folder, but always with mode rw for the user (0600). But the draft
> folder's preferences are set to 0660.
> 
> It looks like this is happening in mh.c, function mh_add_msgs, which
> calls copy_file in common/file-utils.c . And that always sets the file
> mode to 0600.
> 
> Why isn´t the filemode not passed on the copy file, or the msg
> correctly set after the copy_file returns?

It works absolutely correctly here and follows exactly what I set for 'folder
chmod' in the Drafts (and any) folder Properties.

with regards

Paul


More information about the Users mailing list