1 /*
2 * mailmbox Plugin -- mbox support for Sylpheed
3 * Copyright (C) 2003 Christoph Hohmann
4 * Copyright (C) 2003-2005 Hoa v. Dinh, Alfons Hoogervorst
5 *
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.
10 *
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.
15 *
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.
19 */
20
21
22 #ifdef HAVE_CONFIG_H
23 # include "config.h"
24 # include "claws-features.h"
25 #endif
26
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 "plugin.h"
35 #include "main.h"
36
plugin_init(gchar ** error)37 gint plugin_init(gchar **error)
38 {
39 if (!check_plugin_version(MAKE_NUMERIC_VERSION(3,8,1,46),
40 VERSION_NUMERIC, "Mailmbox", error))
41 return -1;
42
43 folder_register_class(claws_mailmbox_get_class());
44 plugin_gtk_init(error);
45 return 0;
46 }
47
plugin_done(void)48 gboolean plugin_done(void)
49 {
50 plugin_gtk_done();
51 if (!claws_is_exiting())
52 folder_unregister_class(claws_mailmbox_get_class());
53 return TRUE;
54 }
55
plugin_name(void)56 const gchar *plugin_name(void)
57 {
58 return _("mailmbox folder");
59 }
60
plugin_desc(void)61 const gchar *plugin_desc(void)
62 {
63 return _("This is a plugin to handle mailboxes in mbox format.");
64 }
65
plugin_type(void)66 const gchar *plugin_type(void)
67 {
68 return "GTK2";
69 }
70
plugin_licence(void)71 const gchar *plugin_licence(void)
72 {
73 return "GPL3+";
74 }
75
plugin_version(void)76 const gchar *plugin_version(void)
77 {
78 return VERSION;
79 }
80
plugin_provides(void)81 struct PluginFeature *plugin_provides(void)
82 {
83 static struct PluginFeature features[] =
84 { {PLUGIN_FOLDERCLASS, N_("MBOX")},
85 {PLUGIN_NOTHING, NULL}};
86 return features;
87 }
88