[Commits] [SCM] claws branch, master, updated. 3.17.6-2-g5cc88aae7

mones at claws-mail.org mones at claws-mail.org
Tue Aug 4 10:54:03 CEST 2020


The branch, master has been updated
       via  5cc88aae7217d6ea385a580a30dc79ea0c91c27f (commit)
      from  aecf6d5c2d0a0dff8d30749fd1e97ef893816c25 (commit)

Summary of changes:
 src/plugins/spamassassin/spamassassin_gtk.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit 5cc88aae7217d6ea385a580a30dc79ea0c91c27f
Author: Ricardo Mones <ricardo at mones.org>
Date:   Tue Aug 4 10:47:15 2020 +0200

    Harmonise GUI maximum value with libspamc's one
    
    …and now SpamAssassin plugin can handle messages up to 256 Mb.

diff --git a/src/plugins/spamassassin/spamassassin_gtk.c b/src/plugins/spamassassin/spamassassin_gtk.c
index b88a33293..ad7ad2ca1 100644
--- a/src/plugins/spamassassin/spamassassin_gtk.c
+++ b/src/plugins/spamassassin/spamassassin_gtk.c
@@ -41,6 +41,9 @@
 #include "menu.h"
 #include "addressbook.h"
 #include "combobox.h"
+#include "libspamc.h"
+
+#define SA_MAX_SIZE_KB (SPAMC_MAX_MESSAGE_LEN / 1024)
 
 struct SpamAssassinPage
 {
@@ -375,7 +378,7 @@ static void spamassassin_create_widget_func(PrefsPage * _page,
 	gtk_widget_show(max_size_label);
 	gtk_box_pack_start(GTK_BOX(hbox_max_size), max_size_label, FALSE, FALSE, 0);
 
-	max_size_spinbtn_adj = GTK_ADJUSTMENT(gtk_adjustment_new(250, 0, 10000, 10, 10, 0));
+	max_size_spinbtn_adj = GTK_ADJUSTMENT(gtk_adjustment_new(250, 0, SA_MAX_SIZE_KB, 10, 10, 0));
 	max_size_spinbtn = gtk_spin_button_new(GTK_ADJUSTMENT(max_size_spinbtn_adj), 1, 0);
 	gtk_widget_show(max_size_spinbtn);
 	gtk_box_pack_start(GTK_BOX(hbox_max_size), max_size_spinbtn, FALSE, FALSE, 0);

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list