2004-11-24 [colin] 0.9.12cvs169.1
[claws.git] / src / plugins / pgpmime / plugin.c
index 29f548175431e378591d6610e884418396fc24b4..cf437d492fa95c1ca1ac5cacd2fec421f92e8082 100644 (file)
 #include "intl.h"
 
 #include "version.h"
+#include "common/sylpheed.h"
 #include "sgpgme.h"
 #include "pgpmime.h"
+#include "prefs_gpg.h"
 
 gint plugin_init(gchar **error)
 {
@@ -36,19 +38,21 @@ gint plugin_init(gchar **error)
                return -1;
        }
 
-       if ((sylpheed_get_version() < MAKE_NUMERIC_VERSION(0, 9, 12, 34))) {
+       if ((sylpheed_get_version() < MAKE_NUMERIC_VERSION(0, 9, 12, 164))) {
                *error = g_strdup("Your sylpheed version is too old");
                return -1;
        }
 
        sgpgme_init();
        pgpmime_init();
+       prefs_gpg_init();
 
        return 0;       
 }
 
 void plugin_done(void)
 {
+       prefs_gpg_done();
        pgpmime_done();
        sgpgme_done();
 }
@@ -60,7 +64,11 @@ const gchar *plugin_name(void)
 
 const gchar *plugin_desc(void)
 {
-       return _("");
+       return _("This plugin enables signature verification of "
+                "digitally signed messages, and decryption of "
+                "encrypted messages. \n"
+                "\n"
+                "You don't need it to send signed or encrypted emails.");
 }
 
 const gchar *plugin_type(void)