correctly set modified flag after auto-save
[claws.git] / src / plugins / smime / plugin.c
bloba026f0317ffd48f33e8919681cd9be59e42e08bd
1 /*
2 * Claws Mail -- a GTK based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2021 Colin Leroy <colin@colino.net> and
4 * the Claws Mail team
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 #ifdef HAVE_CONFIG_H
22 # include "config.h"
23 #include "claws-features.h"
24 #endif
26 #include <stddef.h>
27 #include <glib.h>
28 #include <glib/gi18n.h>
30 #include "plugin.h"
31 #include "version.h"
32 #include "common/claws.h"
33 #include "smime.h"
35 #define PLUGIN_NAME (_("S/MIME"))
37 gint plugin_init(gchar **error)
39 if (!check_plugin_version(MAKE_NUMERIC_VERSION(4,0,0,343),
40 VERSION_NUMERIC, PLUGIN_NAME, error))
41 return -1;
43 smime_init();
45 return 0;
48 gboolean plugin_done(void)
50 smime_done();
51 return TRUE;
54 const gchar *plugin_name(void)
56 return PLUGIN_NAME;
59 const gchar *plugin_desc(void)
61 return _("This plugin handles S/MIME signed and/or encrypted "
62 "mails. You can decrypt mails, verify signatures or "
63 "sign and encrypt your own mails.\n"
64 "\n"
65 "It can be selected as the Default Privacy System in "
66 "/Configuration/[Account Preferences]/Privacy and when "
67 "composing a message from /Options/Privacy System\n"
68 "\n"
69 "This plugin uses the GPGME library as a wrapper for GnuPG.\n"
70 "This plugin also needs gpgsm, gnupg-agent and dirmngr "
71 "installed and configured.\n"
72 "\n"
73 "Information about how to get S/MIME certificates working "
74 "with GPGSM can be found at:\n"
75 "http://www.claws-mail.org/faq/index.php/S/MIME_howto\n"
76 "\n"
77 "GPGME is copyright 2001 by Werner Koch <dd9jn@gnu.org>");
80 const gchar *plugin_type(void)
82 return "GTK3";
85 const gchar *plugin_licence(void)
87 return "GPL3+";
90 const gchar *plugin_version(void)
92 return VERSION;