fix prefs type
[claws.git] / src / plugins / spamassassin / spamassassin.c
index 99bb273bdfc36925056daf1f11c99b646b4f8bf6..10fe5d2c98a0c4c9b02567851f1e5b7e1ac650f8 100644 (file)
@@ -36,6 +36,7 @@
 #include "folder.h"
 #include "prefs.h"
 #include "prefs_gtk.h"
+#include "intl.h"
 
 #include "libspamc.h"
 #include "spamassassin.h"
@@ -73,9 +74,9 @@ static PrefParam param[] = {
         NULL, NULL, NULL},
        {"hostname", "localhost", &config.hostname, P_STRING,
         NULL, NULL, NULL},
-       {"port", "783", &config.port, P_USHORT,
+       {"port", "783", &config.port, P_INT,
         NULL, NULL, NULL},
-       {"max_size", "250", &config.max_size, P_USHORT,
+       {"max_size", "250", &config.max_size, P_INT,
         NULL, NULL, NULL},
        {"receive_spam", "TRUE", &config.receive_spam, P_BOOL,
         NULL, NULL, NULL},
@@ -154,12 +155,12 @@ static gboolean mail_filtering_hook(gpointer source, gpointer data)
        return FALSE;
 }
 
-SpamAssassinConfig *spamassassin_get_config()
+SpamAssassinConfig *spamassassin_get_config(void)
 {
        return &config;
 }
 
-void spamassassin_save_config()
+void spamassassin_save_config(void)
 {
        PrefFile *pfile;
        gchar *rcpath;
@@ -205,7 +206,7 @@ gint plugin_init(gchar **error)
        
 }
 
-void plugin_done()
+void plugin_done(void)
 {
        hooks_unregister_hook(MAIL_FILTERING_HOOKLIST, hook_id);
        g_free(config.hostname);
@@ -214,27 +215,27 @@ void plugin_done()
        debug_print("Spamassassin plugin unloaded\n");
 }
 
-const gchar *plugin_name()
+const gchar *plugin_name(void)
 {
-       return "SpamAssassin";
+       return _("SpamAssassin");
 }
 
-const gchar *plugin_desc()
+const gchar *plugin_desc(void)
 {
-       return "This plugin checks all messages that are received from a POP "
-              "account for spam using a SpamAssassin server. You will need "
-              "a SpamAssassin Server (spamd) running somewhere.\n"
-              "\n"
-              "When a message is identified as spam it can be deleted or "
-              "saved into a special folder.\n"
-              "\n"
-              "This plugin only contains the actual function for filtering "
-              "and deleting or moving the message. You probably want to load "
-              "a User Interface plugin too, otherwise you will have to "
-              "manually write the plugin configuration.\n";
+       return _("This plugin checks all messages that are received from a POP "
+                "account for spam using a SpamAssassin server. You will need "
+                "a SpamAssassin Server (spamd) running somewhere.\n"
+                "\n"
+                "When a message is identified as spam it can be deleted or "
+                "saved into a special folder.\n"
+                "\n"
+                "This plugin only contains the actual function for filtering "
+                "and deleting or moving the message. You probably want to load "
+                "a User Interface plugin too, otherwise you will have to "
+                "manually write the plugin configuration.\n");
 }
 
-const gchar *plugin_type()
+const gchar *plugin_type(void)
 {
        return "Common";
 }