2006-08-14 [cleroy] 2.4.0cvs50
[claws.git] / src / plugins / pgpcore / plugin.c
index 0421656172589592eddd154241fb0c3812ff2750..be342f4f078149e243e7337198c44ce2526e330c 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2003 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2006 Hiroyuki Yamamoto
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -37,14 +37,14 @@ gint plugin_init(gchar **error)
                return -1;
        }
 
-       if ((sylpheed_get_version() < MAKE_NUMERIC_VERSION(1, 9, 12, 40))) {
+       if ((sylpheed_get_version() < MAKE_NUMERIC_VERSION(2, 1, 0, 1))) {
                *error = g_strdup("Your version of Sylpheed-Claws is too old for the PGP/Core plugin");
                return -1;
        }
 
        sgpgme_init();
        prefs_gpg_init();
-
+       sgpgme_check_create_key();
        return 0;       
 }
 
@@ -61,9 +61,15 @@ const gchar *plugin_name(void)
 
 const gchar *plugin_desc(void)
 {
-       return _("This plugin handles PGP core operations. It is used by other\n"
-                "plugins, like PGP/Mime.\n\n"
-                "GPGME is copyright 2001 by Werner Koch <dd9jn@gnu.org>\n");
+       return _("This plugin handles PGP core operations, it is used by other "
+                "plugins, like PGP/Mime.\n"
+                 "\n"
+                "Options can be found in /Configuration/Preferences/Plugins/GPG "
+                "and /Configuration/[Account Preferences]/Plugins/GPG\n"
+                "\n"
+                "The plugin uses the GPGME library as a wrapper for GnuPG.\n"
+                "\n"
+                "GPGME is copyright 2001 by Werner Koch <dd9jn@gnu.org>");
 }
 
 const gchar *plugin_type(void)
@@ -76,3 +82,8 @@ const gchar *plugin_licence(void)
        return "GPL";
 }
 
+const gchar *plugin_version(void)
+{
+       return VERSION;
+}
+