Improve some sieve-related translations
[claws.git] / src / plugins / mailmbox / plugin.c
blobfb1976687665005cc07fd2a2a26ad780b45956a0
1 /*
2 * mailmbox Plugin -- mbox support for Sylpheed
3 * Copyright (C) 2003 Christoph Hohmann
4 * Copyright (C) 2003-2005 Hoa v. Dinh, Alfons Hoogervorst
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 #ifdef HAVE_CONFIG_H
23 # include "config.h"
24 # include "claws-features.h"
25 #endif
27 #include <glib.h>
28 #include <glib/gi18n.h>
29 #include "plugin.h"
30 #include "folder.h"
31 #include "mailmbox_folder.h"
32 #include "common/version.h"
33 #include "plugin_gtk.h"
34 #include "main.h"
36 gint plugin_init(gchar **error)
38 if (!check_plugin_version(MAKE_NUMERIC_VERSION(3,8,1,46),
39 VERSION_NUMERIC, "Mailmbox", error))
40 return -1;
42 folder_register_class(claws_mailmbox_get_class());
43 plugin_gtk_init(error);
44 return 0;
47 gboolean plugin_done(void)
49 plugin_gtk_done();
50 if (!claws_is_exiting())
51 folder_unregister_class(claws_mailmbox_get_class());
52 return TRUE;
55 const gchar *plugin_name(void)
57 return _("mailmbox folder");
60 const gchar *plugin_desc(void)
62 return _("This is a plugin to handle mailboxes in mbox format.");
65 const gchar *plugin_type(void)
67 return "GTK3";
70 const gchar *plugin_licence(void)
72 return "GPL3+";
75 const gchar *plugin_version(void)
77 return VERSION;
80 struct PluginFeature *plugin_provides(void)
82 static struct PluginFeature features[] =
83 { {PLUGIN_FOLDERCLASS, N_("MBOX")},
84 {PLUGIN_NOTHING, NULL}};
85 return features;