aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/MH
diff options
context:
space:
mode:
Diffstat (limited to 'camel/providers/MH')
-rw-r--r--camel/providers/MH/Makefile.am1
-rw-r--r--camel/providers/MH/camel-mh-provider.c46
2 files changed, 47 insertions, 0 deletions
diff --git a/camel/providers/MH/Makefile.am b/camel/providers/MH/Makefile.am
index 0f52c9fb40..35403a7347 100644
--- a/camel/providers/MH/Makefile.am
+++ b/camel/providers/MH/Makefile.am
@@ -13,6 +13,7 @@ INCLUDES = -I.. -I$(srcdir)/.. -I$(includedir) \
libcamelmh_la_SOURCES = \
camel-mh-folder.c \
+ camel-mh-provider.c \
camel-mh-store.c
libcamelmhinclude_HEADERS = \
diff --git a/camel/providers/MH/camel-mh-provider.c b/camel/providers/MH/camel-mh-provider.c
new file mode 100644
index 0000000000..6be4b11e9c
--- /dev/null
+++ b/camel/providers/MH/camel-mh-provider.c
@@ -0,0 +1,46 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+/* camel-mh-provider.c: mh provider registration code */
+
+/*
+ *
+ * Copyright (C) 1999 Bertrand Guiheneuf <Bertrand.Guiheneuf@inria.fr> .
+ *
+ * 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 the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * 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
+ */
+
+#include "config.h"
+#include "camel-mh-store.h"
+#include "camel-provider.h"
+#include "camel-log.h"
+
+
+static CamelProvider _mh_provider = {
+ (GtkType) 0,
+ PROVIDER_STORE,
+ "mh",
+ "Camel default mh provider",
+ "This is a very simple provider, mh is a bad protocol anyway",
+ (GModule *) NULL
+};
+
+
+
+CamelProvider *
+camel_provider_module_init ()
+{
+ _mh_provider.object_type = camel_mh_store_get_type();
+ return &_mh_provider;
+}