[Commits] [SCM] claws branch, gtk3, updated. 3.16.0-979-g720331b93

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


The branch, gtk3 has been updated
       via  720331b93cf12526f4be335e67c4ef75005a55ea (commit)
      from  bb087f25bc5cfe986cefb2578e31f302490de093 (commit)

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


- Log -----------------------------------------------------------------
commit 720331b93cf12526f4be335e67c4ef75005a55ea
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 fbe318bd4..2e3f0a6ce 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
 {
@@ -367,7 +370,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