Add missing title to foldersel_folder_sel calls
[claws-mail-maildir-plugin.git] / src / plugin.c
1 /*
2  * Maildir Plugin -- Maildir++ support for Sylpheed
3  * Copyright (C) 2003-2004 Christoph Hohmann
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18  */
19
20 #include <glib.h>
21 #include <glib/gi18n.h>
22
23 #include "common/version.h"
24 #include "common/plugin.h"
25 #include "folder.h"
26 #include "main.h"
27
28 #include "pluginconfig.h"
29 #include "maildir.h"
30 #include "maildir_gtk.h"
31 #include "uiddb.h"
32 #include "plugin.h"
33
34 gint plugin_init(gchar **error)
35 {
36         if (!check_plugin_version(MAKE_NUMERIC_VERSION(3,7,6,53),
37                                 VERSION_NUMERIC, "Maildir++", error))
38                 return -1;
39
40         uiddb_init();
41         folder_register_class(maildir_get_class());
42
43         maildir_gtk_init();
44
45         return 0;
46 }
47
48 gboolean plugin_done(void)
49 {
50         maildir_gtk_done();
51         if (!claws_is_exiting())
52                 folder_unregister_class(maildir_get_class());
53         uiddb_done();
54         return TRUE;
55 }
56
57 const gchar *plugin_name(void)
58 {
59         return "Maildir++";
60 }
61
62 const gchar *plugin_desc(void)
63 {
64         return _("This plugin provides direct support for Maildir++ mailboxes.\n"
65                "\n"
66                "With this plugin you can share your Maildir++ mailbox with "
67                "other mailers or IMAP servers.");
68 }
69
70 const gchar *plugin_type(void)
71 {
72         return "GTK2";
73 }
74
75 const gchar *plugin_licence(void)
76 {
77                 return "GPL2+";
78 }
79
80 const gchar *plugin_version(void)
81 {
82         return PLUGINVERSION;
83 }
84
85 struct PluginFeature *plugin_provides(void)
86 {
87         static struct PluginFeature features[] = 
88                 { {PLUGIN_FOLDERCLASS, N_("Maildir")},
89                   {PLUGIN_NOTHING, NULL}};
90         return features;
91 }