2006-04-13 [paul] 2.1.0cvs38
[claws.git] / src / plugins / pgpmime / plugin.c
index 130ae59a8cb210f319c72f328b86109ce2b0df9f..2e7640c2419c4a2ef64a24fadcacd01dbc2e38d8 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 and the Sylpheed-Claws team
  *
  * 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
@@ -14,7 +14,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
 #ifdef HAVE_CONFIG_H
 #endif
 
 #include <stddef.h>
-
-#include "intl.h"
+#include <glib.h>
+#include <glib/gi18n.h>
 
 #include "version.h"
-#include "sgpgme.h"
+#include "common/sylpheed.h"
 #include "pgpmime.h"
 
 gint plugin_init(gchar **error)
 {
        if ((sylpheed_get_version() > VERSION_NUMERIC)) {
-               *error = g_strdup("Your sylpheed version is newer than the version the plugin was built with");
+               *error = g_strdup("Your version of Sylpheed-Claws is newer than the version the PGP/MIME plugin was built with");
                return -1;
        }
 
-       if ((sylpheed_get_version() < MAKE_NUMERIC_VERSION(0, 9, 12, 34))) {
-               *error = g_strdup("Your sylpheed version is too old");
+       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/MIME plugin");
                return -1;
        }
 
-       sgpgme_init();
        pgpmime_init();
 
        return 0;       
@@ -50,7 +49,6 @@ gint plugin_init(gchar **error)
 void plugin_done(void)
 {
        pgpmime_done();
-       sgpgme_done();
 }
 
 const gchar *plugin_name(void)
@@ -60,14 +58,30 @@ const gchar *plugin_name(void)
 
 const gchar *plugin_desc(void)
 {
-       return _("This plugin enables signature verification of "
-                "digitally signed messages, and decryption of "
-                "encrypted messages. \n"
+       return _("This plugin handles PGP/MIME signed and/or encrypted "
+                "mails. You can decrypt mails, verify signatures or "
+                 "sign and encrypt your own mails.\n"
+                "\n"
+                "It can be selected as the Default Privacy System in "
+                "/Configuration/[Account Preferences]/Privacy and when "
+                "composing a message from /Options/Privacy System\n"
+                "\n"
+                "The plugin uses the GPGME library as a wrapper for GnuPG.\n"
                 "\n"
-                "You don't need it to send signed or encrypted emails.");
+                "GPGME is copyright 2001 by Werner Koch <dd9jn@gnu.org>");
 }
 
 const gchar *plugin_type(void)
 {
        return "GTK2";
 }
+
+const gchar *plugin_licence(void)
+{
+       return "GPL";
+}
+
+const gchar *plugin_version(void)
+{
+       return VERSION;
+}