[Commits] [SCM] claws branch, master, updated. 4.3.0-26-g09953e400

paul at claws-mail.org paul at claws-mail.org
Tue Aug 13 08:55:53 UTC 2024


The branch, master has been updated
       via  09953e4005573c130e48edab594c2de95d23dadb (commit)
      from  f6a36635995becb411f30602424d2625dafd2298 (commit)

Summary of changes:
 AUTHORS           | 1 +
 src/gtk/authors.h | 1 +
 src/mh.c          | 7 +++++++
 3 files changed, 9 insertions(+)


- Log -----------------------------------------------------------------
commit 09953e4005573c130e48edab594c2de95d23dadb
Author: Paul <paul at claws-mail.org>
Date:   Tue Aug 13 09:55:49 2024 +0100

    fix bug 4821, 'If the Mail folder is on another partition, folder chmod settings are not applied to draft and queue'
    
    patch by MatN

diff --git a/AUTHORS b/AUTHORS
index 61eb7b00c..dff6a207b 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -352,3 +352,4 @@ contributors (in addition to the above; based on Changelog)
 	Gianni Ceccarelli
 	Paul Wolneykien
 	Quentin Rameau
+	MatN
diff --git a/src/gtk/authors.h b/src/gtk/authors.h
index 9c4129234..37724d989 100644
--- a/src/gtk/authors.h
+++ b/src/gtk/authors.h
@@ -265,6 +265,7 @@ static char *CONTRIBS_LIST[] = {
 "Damian Poddebniak",
 "Marcel Pol",
 "Martin Pool",
+"MatN",
 "Quar",
 "Don Quijote",
 "Steve Rader",
diff --git a/src/mh.c b/src/mh.c
index 613886052..d11b6c499 100644
--- a/src/mh.c
+++ b/src/mh.c
@@ -418,6 +418,7 @@ static gint mh_add_msgs(Folder *folder, FolderItem *dest, GSList *file_list,
 	gchar *destfile;
 	GSList *cur;
 	MsgFileInfo *fileinfo;
+	FolderItemPrefs *prefs;
 
 	cm_return_val_if_fail(dest != NULL, -1);
 	cm_return_val_if_fail(file_list != NULL, -1);
@@ -427,6 +428,8 @@ static gint mh_add_msgs(Folder *folder, FolderItem *dest, GSList *file_list,
 		if (dest->last_num < 0) return -1;
 	}
 
+	prefs = dest->prefs;
+
 	for (cur = file_list; cur != NULL; cur = cur->next) {
 		fileinfo = (MsgFileInfo *)cur->data;
 
@@ -445,6 +448,10 @@ static gint mh_add_msgs(Folder *folder, FolderItem *dest, GSList *file_list,
 #ifdef G_OS_UNIX
 		}
 #endif
+		if (prefs && prefs->enable_folder_chmod && prefs->folder_chmod) {
+			if (chmod(destfile, prefs->folder_chmod) < 0)
+				FILE_OP_ERROR(destfile, "chmod");
+		}
 
 		if (relation != NULL)
 			g_hash_table_insert(relation, fileinfo, GINT_TO_POINTER(dest->last_num + 1));

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list