aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/default-mailer
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/default-mailer')
-rw-r--r--plugins/default-mailer/ChangeLog123
-rw-r--r--plugins/default-mailer/Makefile.am66
-rw-r--r--plugins/default-mailer/apps-evolution-mail-prompts-checkdefault.schemas.in16
-rw-r--r--plugins/default-mailer/default-mailer.c99
-rw-r--r--plugins/default-mailer/org-gnome-default-mailer.eplug.xml20
-rw-r--r--plugins/default-mailer/org-gnome-default-mailer.error.xml10
6 files changed, 0 insertions, 334 deletions
diff --git a/plugins/default-mailer/ChangeLog b/plugins/default-mailer/ChangeLog
deleted file mode 100644
index 5fe56f0817..0000000000
--- a/plugins/default-mailer/ChangeLog
+++ /dev/null
@@ -1,123 +0,0 @@
-2008-09-25 Sankar P <psankar@novell.com>
-
-License Changes
-
- * default-mailer.c:
-
-2008-08-12 Bharath Acharya <abharath@novell.com>
-
- * Makefile.am: Have a check for OS_WIN32 and handle the schema data
- differently. make install error on win32.
-
-2008-08-12 Bharath Acharya <abharath@novell.com>
-
- * Makefile.am: Use NO_UNDEFINED. Link with more libraries. To generate
- dlls on Windows.
-
-2007-08-20 Matthew Barnes <mbarnes@redhat.com>
-
- * Makefile.am: Fix a distcheck error.
-
-2007-07-26 Hiroyuki Ikezoe <poincare@ikezoe.net>
-
- * default-mailer.c: (org_gnome_default_mailer_check_default): Plugged
- memory leak.
-
-2007-07-01 Srinivasa Ragavan <sragavan@novell.com>
-
- ** Fix for bug #448970
-
- * default-mailer.c: (org_gnome_default_mailer_check_default):
-
-2007-06-03 Srinivasa Ragavan <sragavan@novell.com>
-
- ** Fix for version removal from Installed files from Gilles Dartiguelongue
-
- * Makefile.am:
-
-2007-05-12 Matthew Barnes <mbarnes@redhat.com>
-
- ** Fixes part of bug #337616
-
- * Makefile.am: Add $(schema_DATA) to DISTCLEANFILES.
-
-2007-04-02 Sankar P <psankar@novell.com>
-
- * Committed on behalf of Gilles Dartiguelongue <dartigug@esiee.fr>
-
- * org-gnome-default-mailer.eplug.xml:
- Cleanup.
- Fixes part of #301149
-
-2006-08-22 Srinivasa Ragavan <sragavan@novell.com>
-
- ** Fix for bug #350823
-
- * default-mailer.c: (evolution_is_default_mailer),
- (org_gnome_default_mailer_check_default): Patch from Matthew Barnes
- to make it robust as well as invokes the right component.
-
-2006-02-27 Srinivasa Ragavan <sragavan@novell.com>
-
- * default-mailer.c (org_gnome_default_mailer_check_default): Used
- gconf_value_free to free a GConfValue instead of a g_free.
-
-2005-12-12 Harish Krishnaswamy <kharish@novell.com>
-
- * Makefile.am: Fix make-clean issues.
-
-2005-06-23 Not Zed <NotZed@Ximian.com>
-
- * Makefile.am: Changed the way the i18n stuff and xml building is
- done for the 'new way'.
-
- * default-mailer.c: fixed e-error header move and removed some
- other unecessary includes.
-
-2005-03-24 Jonathan Dieter <jdieter99@gmx.net>
- * default-mailer.c: removed code to put a checkbox in the
- configuration menu, changed procedure names to avoid
- namespace pollution.
-
- * org-gnome-default-mailer.eplug.in: removed definitions
- to put a checkbox in the configuration menu.
-
- * apps-evolution-mail-prompts-checkdefault.schema.in.in:
- schema for GConf key /apps/evolution/mail/prompts/checkdefault.
-
- * Makefile.am: added steps to build GConf schema.
-
-2005-03-17 Jonathan Dieter <jdieter99@gmx.net>
-
- * default-mailer.c: renamed from default-mail-client-check.c
- Renamed modules to fit new name and cleaned up code. Fixed
- small memory leak.
-
- * org-gnome-default-mailer.xml: renamed from
- org-gnome-default-mail-client-check.xml.
-
- * org-gnome-default-mailer.eplug.in: renamed from
- org-gnome-default-mail-client-check.eplug.in.
-
- * Makefile.am: Fixed references to fit new file names.
-
-2005-03-15 Jonathan Dieter <jdieter99@gmx.net>
-
- * default-mail-client-check.c (check_default_mail_client):
- Removed gtk_message_dialog() call and replaced with
- e_error().
-
- * Makefile.am: added necessary steps to build xml.
-
- * org-gnome-default-mail-client-check.xml: define the
- message box that shows up on startup.
-
-2005-03-07 Jonathan Dieter <jdieter99@gmx.net>
-
- * default-mail-client-check.c: Plugin implementation.
-
- * org-gnome-default-mail-client-check.eplug.in: define the
- default mail client check plugin.
-
- * Makefile.am: build the default mail client check plugin.
-
diff --git a/plugins/default-mailer/Makefile.am b/plugins/default-mailer/Makefile.am
deleted file mode 100644
index b4132fd8eb..0000000000
--- a/plugins/default-mailer/Makefile.am
+++ /dev/null
@@ -1,66 +0,0 @@
-@EVO_PLUGIN_RULE@
-
-error_DATA = org-gnome-default-mailer.error
-errordir = $(privdatadir)/errors
-
-plugin_DATA = org-gnome-default-mailer.eplug
-
-plugin_LTLIBRARIES = liborg-gnome-default-mailer.la
-
-liborg_gnome_default_mailer_la_CPPFLAGS = \
- $(AM_CPPFLAGS) \
- -I$(top_srcdir) \
- -I$(top_srcdir)/widgets \
- $(GNOME_PLATFORM_CFLAGS) \
- $(EVOLUTION_MAIL_CFLAGS)
-
-liborg_gnome_default_mailer_la_SOURCES = default-mailer.c
-liborg_gnome_default_mailer_la_LDFLAGS = -module -avoid-version $(NO_UNDEFINED)
-liborg_gnome_default_mailer_la_LIBADD = \
- $(top_builddir)/mail/libevolution-mail.la \
- $(EVOLUTION_MAIL_LIBS) \
- $(GNOME_PLATFORM_LIBS)
-
-schemadir = $(GCONF_SCHEMA_FILE_DIR)
-schema_in_files = apps-evolution-mail-prompts-checkdefault.schemas.in
-schema_DATA = $(schema_in_files:.schemas.in=.schemas)
-
-@INTLTOOL_SCHEMAS_RULE@
-
-if GCONF_SCHEMAS_INSTALL
-
-if OS_WIN32
-install-data-local:
- if test -z "$(DESTDIR)" ; then \
- for p in $(schema_DATA) ; do \
- (echo set GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE); \
- echo $(GCONFTOOL) --makefile-install-rule $$p) >_temp.bat; \
- cmd /c _temp.bat; \
- rm _temp.bat; \
- done \
- fi
-else
-install-data-local:
- if test -z "$(DESTDIR)" ; then \
- for p in $(schema_DATA) ; do \
- GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) \
- $(GCONFTOOL) --makefile-install-rule $$p; \
- done \
- fi
-endif
-
-endif
-
-EXTRA_DIST = \
- org-gnome-default-mailer.eplug.xml \
- org-gnome-default-mailer.error.xml \
- $(schema_in_files)
-
-BUILT_SOURCES = org-gnome-default-mailer.eplug \
- org-gnome-default-mailer.error
-
-CLEANFILES = $(BUILT_SOURCES)
-
-DISTCLEANFILES = $(schema_DATA)
-
--include $(top_srcdir)/git.mk
diff --git a/plugins/default-mailer/apps-evolution-mail-prompts-checkdefault.schemas.in b/plugins/default-mailer/apps-evolution-mail-prompts-checkdefault.schemas.in
deleted file mode 100644
index cdcaf7892a..0000000000
--- a/plugins/default-mailer/apps-evolution-mail-prompts-checkdefault.schemas.in
+++ /dev/null
@@ -1,16 +0,0 @@
-<gconfschemafile>
- <schemalist>
- <schema>
- <key>/schemas/apps/evolution/mail/prompts/checkdefault</key>
- <applyto>/apps/evolution/mail/prompts/checkdefault</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Check whether Evolution is the default mailer</short>
- <long>Every time Evolution starts, check whether or not it is the default mailer.</long>
- </locale>
- </schema>
- </schemalist>
-</gconfschemafile>
-
diff --git a/plugins/default-mailer/default-mailer.c b/plugins/default-mailer/default-mailer.c
deleted file mode 100644
index 93c100631b..0000000000
--- a/plugins/default-mailer/default-mailer.c
+++ /dev/null
@@ -1,99 +0,0 @@
-/*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) version 3.
- *
- * 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with the program; if not, see <http://www.gnu.org/licenses/>
- *
- *
- * Authors:
- * Jonathan Dieter <jdieter99@gmx.net>
- *
- * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
- * Copyright 2005 Jonathan Dieter
- *
- */
-
-#include <stdlib.h>
-#include <string.h>
-
-#include <gconf/gconf-client.h>
-
-#include <mail/em-utils.h>
-#include <shell/es-event.h>
-
-#define GCONF_KEY_CHECKDEFAULT "/apps/evolution/mail/prompts/checkdefault"
-#define GCONF_KEY_MAILTO_ENABLED "/desktop/gnome/url-handlers/mailto/enabled"
-#define GCONF_KEY_MAILTO_COMMAND "/desktop/gnome/url-handlers/mailto/command"
-#define EVOLUTION_MAILTO_COMMAND "evolution --component=mail %s"
-
-void org_gnome_default_mailer_check_default (EPlugin *ep, ESEventTargetUpgrade *target);
-
-static gboolean
-evolution_is_default_mailer (const gchar *mailto_command)
-{
- gint argc;
- gchar **argv;
- gchar *basename;
- gboolean is_default;
-
- if (mailto_command == NULL)
- return FALSE;
-
- /* tokenize the mailto command */
- if (!g_shell_parse_argv (mailto_command, &argc, &argv, NULL))
- return FALSE;
-
- g_assert (argc > 0);
-
- /* check the basename of the first token */
- basename = g_path_get_basename (argv[0]);
- is_default = g_str_has_prefix (basename, "evolution");
- g_free (basename);
-
- g_strfreev (argv);
-
- return is_default;
-}
-
-void
-org_gnome_default_mailer_check_default (EPlugin *ep, ESEventTargetUpgrade *target)
-{
- GConfClient *client;
- gchar *mailer;
- GConfValue *is_key;
-
- client = gconf_client_get_default ();
-
- /* See whether the check default mailer key has already been set */
- is_key = gconf_client_get(client, GCONF_KEY_CHECKDEFAULT, NULL);
- if (!is_key)
- gconf_client_set_bool(client, GCONF_KEY_CHECKDEFAULT, TRUE, NULL);
- else
- gconf_value_free (is_key);
-
- /* Check whether we're supposed to check whether or not we are the default mailer */
- if (gconf_client_get_bool(client, GCONF_KEY_CHECKDEFAULT, NULL)) {
- mailer = gconf_client_get_string(client, GCONF_KEY_MAILTO_COMMAND, NULL);
-
- /* Check whether we are the default mailer */
- if (!evolution_is_default_mailer (mailer)) {
- /* Ask whether we should be the default mailer */
- if (em_utils_prompt_user(NULL, GCONF_KEY_CHECKDEFAULT, "org.gnome.default.mailer:check-default", NULL)) {
- gconf_client_set_bool(client, GCONF_KEY_MAILTO_ENABLED, TRUE, NULL);
- gconf_client_set_string(client, GCONF_KEY_MAILTO_COMMAND, EVOLUTION_MAILTO_COMMAND, NULL);
- }
- }
-
- g_free(mailer);
- }
-
- g_object_unref (client);
-}
diff --git a/plugins/default-mailer/org-gnome-default-mailer.eplug.xml b/plugins/default-mailer/org-gnome-default-mailer.eplug.xml
deleted file mode 100644
index 44c5febedf..0000000000
--- a/plugins/default-mailer/org-gnome-default-mailer.eplug.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0"?>
-<e-plugin-list>
- <e-plugin
- id="org.gnome.evolution.default.mailer"
- type="shlib"
- _name="Default Mail Client"
- location="@PLUGINDIR@/liborg-gnome-default-mailer@SOEXT@">
-
- <_description>Check whether Evolution is the default mail client on startup.</_description>
- <author name="Jonathan Dieter" email="jdieter99@gmx.net"/>
-
- <hook class="org.gnome.evolution.shell.events:1.0">
- <event
- id="upgrade.done"
- handle="org_gnome_default_mailer_check_default"
- target="upgrade"
- />
- </hook>
- </e-plugin>
-</e-plugin-list>
diff --git a/plugins/default-mailer/org-gnome-default-mailer.error.xml b/plugins/default-mailer/org-gnome-default-mailer.error.xml
deleted file mode 100644
index 03e2e8262d..0000000000
--- a/plugins/default-mailer/org-gnome-default-mailer.error.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<error-list domain="org.gnome.default.mailer">
-
- <error id="check-default" type="question" default="GTK_RESPONSE_YES">
- <_secondary>Do you want to make Evolution your default e-mail client?</_secondary>
- <button stock="gtk-yes" response="GTK_RESPONSE_YES"/>
- <button stock="gtk-no" response="GTK_RESPONSE_NO"/>
- </error>
-
-</error-list>