[Commits] [SCM] claws branch, gtk3, updated. 3.99.0-81-g0581236ef

paul at claws-mail.org paul at claws-mail.org
Thu Apr 15 21:05:26 CEST 2021


The branch, gtk3 has been updated
       via  0581236efe10250297cb992b39f8a7e8741bd5d3 (commit)
      from  e6e3c27f75c2198d67672abc8f5582106d355928 (commit)

Summary of changes:
 src/prefs_account.c   | 3 +++
 src/prefs_account.h   | 1 +
 src/prefs_common.h    | 4 ++--
 src/prefs_migration.c | 9 +++++++++
 4 files changed, 15 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit 0581236efe10250297cb992b39f8a7e8741bd5d3
Author: paul <paul at claws-mail.org>
Date:   Thu Apr 15 20:05:21 2021 +0100

    migrate use_apop_auth to new config

diff --git a/src/prefs_account.c b/src/prefs_account.c
index d6e5d2cb7..13f5695d0 100644
--- a/src/prefs_account.c
+++ b/src/prefs_account.c
@@ -517,6 +517,9 @@ static PrefParam basic_param[] = {
 };
 
 static PrefParam receive_param[] = {
+	{"use_apop_auth", "FALSE", &tmp_ac_prefs.use_apop_auth, P_BOOL,
+	 NULL, NULL}, /* deprecated */
+
 	{"use_pop_auth", "FALSE", &tmp_ac_prefs.use_pop_auth, P_BOOL,
 	 &receive_page.pop_auth_checkbtn,
 	 prefs_set_data_from_toggle, prefs_set_toggle},
diff --git a/src/prefs_account.h b/src/prefs_account.h
index 88c922eb5..9995a764e 100644
--- a/src/prefs_account.h
+++ b/src/prefs_account.h
@@ -98,6 +98,7 @@ struct _PrefsAccount
 	/* Receive */
 	gboolean use_pop_auth;
         POPAuthType pop_auth_type;
+	gboolean use_apop_auth; /* deprecated */
 	gboolean rmmail;
 	gint msg_leave_time;
 	gint msg_leave_hour;
diff --git a/src/prefs_common.h b/src/prefs_common.h
index 90de7de6c..188fa17e1 100644
--- a/src/prefs_common.h
+++ b/src/prefs_common.h
@@ -1,6 +1,6 @@
 /*
  * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2020 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2021 the Claws Mail team and Hiroyuki Yamamoto
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -35,7 +35,7 @@
 #include "prefs_msg_colors.h"
 #include "prefs_summary_open.h"
 
-#define CLAWS_CONFIG_VERSION 3
+#define CLAWS_CONFIG_VERSION 4
 
 typedef struct _PrefsCommon	PrefsCommon;
 
diff --git a/src/prefs_migration.c b/src/prefs_migration.c
index 831121697..1a2f84d48 100644
--- a/src/prefs_migration.c
+++ b/src/prefs_migration.c
@@ -143,6 +143,15 @@ static void _update_config_account(PrefsAccount *ac_prefs, gint version)
 
 			break;
 
+		case 3:
+			/* With the introduction of OAUTH2 support, the APOP option
+			 * (use_apop_auth) has been swallowed into a combobox and
+			 * renamed */
+			if (ac_prefs->use_apop_auth == 1) {
+				ac_prefs->use_pop_auth = 1;
+				ac_prefs->pop_auth_type = 1;
+			}
+			break;
 		default:
 
 			/* NOOP */

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list