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

Paul paul at claws-mail.org
Tue Jul 30 09:01:11 UTC 2024


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

> It also happens if I save a message for later sending, that is, into
> the queue folder: the message has mode 0600.
> I put in some extra log_message entries in the code to get info into the
> claws log file, because the debug_print statements don't always result
> in a terminal msg. This gives f.i. for draft:
> ====
> [2024-07-29 19:06:15] * message: Draft path, name: draft, draft
> [2024-07-29 19:06:15] * message: Temp file name
> /home/mat/.claws-mail/tmp/draft.0x15a3c00
> [2024-07-29 19:06:15] * message: Folder chmod 641
> [2024-07-29 19:06:15] * message: Temp file mode set to 661
> =====
> 
> The second 6 is hard coded, if a folder's chmod is read only, the code
> changes the tmp msg files mode to rw. Note that all Mail folders
> are another partition, mounted rw for mail users, although I can't see
> how that should affect it.
> 
> Is there another place in the code that afterwards should set the
> proper filemode?

For me, the above just makes the situation more confused and clarifies
nothing. debug_print()'s either always print to the terminal when --debug
mode is used or never print to the terminal when --debug is not used; there
is no /sometimes/. Your dated output doesn't really tell us anything at all.
"The second 6 is hard coded", it's not clear what this refers to.

Anyway, your problem seems to be a local problem. What is causing it is not
possible to say with only the provided info to go on.

with regards

Paul


More information about the Users mailing list