#include "folder.h"
#include "prefs.h"
#include "prefs_gtk.h"
+#include "intl.h"
#include "libspamc.h"
#include "spamassassin.h"
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},
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;
}
-void plugin_done()
+void plugin_done(void)
{
hooks_unregister_hook(MAIL_FILTERING_HOOKLIST, hook_id);
g_free(config.hostname);
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";
}