diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2012-01-18 00:07:19 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-01-19 12:48:47 +0800 |
commit | 61ae36351b24cc676f60483d576706bf827f2987 (patch) | |
tree | c55d9e000efd47fa14865fad2defa79b5ed61ffd /plugins | |
parent | 37644b9d257369c5c158121ca4807cafbe844595 (diff) | |
download | gsoc2013-evolution-61ae36351b24cc676f60483d576706bf827f2987.tar gsoc2013-evolution-61ae36351b24cc676f60483d576706bf827f2987.tar.gz gsoc2013-evolution-61ae36351b24cc676f60483d576706bf827f2987.tar.bz2 gsoc2013-evolution-61ae36351b24cc676f60483d576706bf827f2987.tar.lz gsoc2013-evolution-61ae36351b24cc676f60483d576706bf827f2987.tar.xz gsoc2013-evolution-61ae36351b24cc676f60483d576706bf827f2987.tar.zst gsoc2013-evolution-61ae36351b24cc676f60483d576706bf827f2987.zip |
Introduce libemail-engine and libemail-utils.
These libraries are bound for E-D-S so they live at the lowest layer of
Evolution for now -- even libeutil can link to them (but please don't).
This is the first step toward moving mail handing to a D-Bus service.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/caldav/Makefile.am | 1 | ||||
-rw-r--r-- | plugins/caldav/caldav-browse-server.c | 3 | ||||
-rw-r--r-- | plugins/dbx-import/Makefile.am | 2 | ||||
-rw-r--r-- | plugins/dbx-import/dbx-importer.c | 7 | ||||
-rw-r--r-- | plugins/imap-features/imap-headers.c | 9 | ||||
-rw-r--r-- | plugins/itip-formatter/Makefile.am | 2 | ||||
-rw-r--r-- | plugins/itip-formatter/itip-formatter.c | 29 | ||||
-rw-r--r-- | plugins/mail-notification/Makefile.am | 1 | ||||
-rw-r--r-- | plugins/mail-notification/mail-notification.c | 2 | ||||
-rw-r--r-- | plugins/mail-to-task/Makefile.am | 1 | ||||
-rw-r--r-- | plugins/mail-to-task/mail-to-task.c | 23 | ||||
-rw-r--r-- | plugins/mailing-list-actions/Makefile.am | 2 | ||||
-rw-r--r-- | plugins/mailing-list-actions/mailing-list-actions.c | 39 | ||||
-rw-r--r-- | plugins/mark-all-read/mark-all-read.c | 3 | ||||
-rw-r--r-- | plugins/pst-import/pst-importer.c | 5 | ||||
-rw-r--r-- | plugins/templates/Makefile.am | 1 | ||||
-rw-r--r-- | plugins/templates/templates.c | 16 |
17 files changed, 90 insertions, 56 deletions
diff --git a/plugins/caldav/Makefile.am b/plugins/caldav/Makefile.am index 6d89204eff..432cafd08e 100644 --- a/plugins/caldav/Makefile.am +++ b/plugins/caldav/Makefile.am @@ -19,6 +19,7 @@ liborg_gnome_evolution_caldav_la_SOURCES = \ liborg_gnome_evolution_caldav_la_LIBADD = \ $(top_builddir)/e-util/libeutil.la \ $(top_builddir)/widgets/misc/libemiscwidgets.la \ + $(top_builddir)/libemail-utils/libemail-utils.la \ $(EVOLUTION_DATA_SERVER_LIBS) \ $(GNOME_PLATFORM_LIBS) diff --git a/plugins/caldav/caldav-browse-server.c b/plugins/caldav/caldav-browse-server.c index e1384ce062..c9d09cea20 100644 --- a/plugins/caldav/caldav-browse-server.c +++ b/plugins/caldav/caldav-browse-server.c @@ -38,7 +38,8 @@ #include <libedataserverui/e-passwords.h> #include <e-util/e-dialog-utils.h> -#include <e-util/e-account-utils.h> + +#include <libemail-utils/e-account-utils.h> #include "caldav-browse-server.h" diff --git a/plugins/dbx-import/Makefile.am b/plugins/dbx-import/Makefile.am index 67d5e0d5d3..eeaf69ff3f 100644 --- a/plugins/dbx-import/Makefile.am +++ b/plugins/dbx-import/Makefile.am @@ -27,6 +27,8 @@ liborg_gnome_dbx_import_la_LIBADD = \ $(top_builddir)/mail/libevolution-mail.la \ $(top_builddir)/e-util/libeutil.la \ $(top_builddir)/shell/libeshell.la \ + $(top_builddir)/libemail-engine/libemail-engine.la \ + $(top_builddir)/libemail-utils/libemail-utils.la \ $(EVOLUTION_DATA_SERVER_LIBS) \ $(GNOME_PLATFORM_LIBS) \ $(GTKHTML_LIBS) diff --git a/plugins/dbx-import/dbx-importer.c b/plugins/dbx-import/dbx-importer.c index 5415f4867c..f6b666516a 100644 --- a/plugins/dbx-import/dbx-importer.c +++ b/plugins/dbx-import/dbx-importer.c @@ -64,10 +64,11 @@ #include <libedataserver/e-data-server-util.h> #include <libedataserverui/e-source-selector-dialog.h> +#include <libemail-utils/mail-mt.h> +#include <libemail-engine/mail-tools.h> + #include <mail/e-mail-backend.h> #include <mail/em-folder-selection-button.h> -#include <mail/mail-mt.h> -#include <mail/mail-tools.h> #include <mail/em-utils.h> #define d(x) @@ -603,7 +604,7 @@ dbx_import_file (DbxImporter *m) /* Destination folder, was set in our widget */ m->parent_uri = g_strdup (((EImportTargetURI *) m->target)->uri_dest); - cancellable = e_activity_get_cancellable (m->base.activity); + cancellable = m->base.cancellable; /* XXX Dig up the EMailSession from the default EShell. * Since the EImport framework doesn't allow for user diff --git a/plugins/imap-features/imap-headers.c b/plugins/imap-features/imap-headers.c index f09f880b36..60f50d7dd6 100644 --- a/plugins/imap-features/imap-headers.c +++ b/plugins/imap-features/imap-headers.c @@ -25,15 +25,14 @@ #endif #include <string.h> - -#include <mail/em-config.h> - #include <gtk/gtk.h> +#include <glib/gi18n.h> #include <e-util/e-util.h> -#include <e-util/e-account-utils.h> -#include <glib/gi18n.h> +#include <libemail-utils/e-account-utils.h> + +#include <mail/em-config.h> typedef struct _epif_data EPImapFeaturesData; struct _epif_data { diff --git a/plugins/itip-formatter/Makefile.am b/plugins/itip-formatter/Makefile.am index 793908ecad..71fced63f0 100644 --- a/plugins/itip-formatter/Makefile.am +++ b/plugins/itip-formatter/Makefile.am @@ -22,6 +22,8 @@ liborg_gnome_itip_formatter_la_LIBADD = \ $(top_builddir)/shell/libeshell.la \ $(top_builddir)/em-format/libemformat.la \ $(top_builddir)/widgets/misc/libemiscwidgets.la \ + $(top_builddir)/libemail-utils/libemail-utils.la \ + $(top_builddir)/libemail-engine/libemail-engine.la \ $(EVOLUTION_DATA_SERVER_LIBS) \ $(GNOME_PLATFORM_LIBS) \ $(GTKHTML_LIBS) diff --git a/plugins/itip-formatter/itip-formatter.c b/plugins/itip-formatter/itip-formatter.c index 687dc26a53..d450dcfb80 100644 --- a/plugins/itip-formatter/itip-formatter.c +++ b/plugins/itip-formatter/itip-formatter.c @@ -27,27 +27,36 @@ #include <string.h> #include <gtk/gtk.h> #include <glib/gi18n.h> + #include <libecal/e-cal-client.h> #include <libecal/e-cal-time-util.h> +#include <libedataserver/e-account-list.h> #include <libedataserverui/e-source-selector.h> #include <libedataserverui/e-client-utils.h> #include <gtkhtml/gtkhtml-embedded.h> + +#include <e-util/e-alert-dialog.h> +#include <e-util/e-mktemp.h> + +#include <shell/e-shell.h> +#include <shell/e-shell-utils.h> + +#include <libemail-utils/e-account-utils.h> +#include <libemail-utils/mail-mt.h> + +#include <libemail-engine/mail-folder-cache.h> +#include <libemail-engine/mail-tools.h> + #include <mail/em-format-hook.h> #include <mail/em-config.h> #include <mail/em-format-html.h> #include <mail/em-utils.h> -#include <mail/mail-folder-cache.h> -#include <mail/mail-tools.h> -#include <mail/mail-mt.h> -#include <libedataserver/e-account-list.h> -#include <e-util/e-account-utils.h> -#include <e-util/e-alert-dialog.h> -#include <e-util/e-mktemp.h> + +#include <misc/e-attachment.h> + #include <calendar/gui/itip-utils.h> -#include <shell/e-shell.h> -#include <shell/e-shell-utils.h> + #include "itip-view.h" -#include <misc/e-attachment.h> #define CLASSID "itip://" #define CONF_KEY_DELETE "delete-processed" diff --git a/plugins/mail-notification/Makefile.am b/plugins/mail-notification/Makefile.am index bcac34a81c..07cb42ed32 100644 --- a/plugins/mail-notification/Makefile.am +++ b/plugins/mail-notification/Makefile.am @@ -29,6 +29,7 @@ liborg_gnome_mail_notification_la_LIBADD = \ $(top_builddir)/e-util/libeutil.la \ $(top_builddir)/mail/libevolution-mail.la \ $(top_builddir)/shell/libeshell.la \ + $(top_builddir)/libemail-utils/libemail-utils.la \ $(EVOLUTION_DATA_SERVER_LIBS) \ $(GNOME_PLATFORM_LIBS) \ $(LIBNOTIFY_LIBS) \ diff --git a/plugins/mail-notification/mail-notification.c b/plugins/mail-notification/mail-notification.c index 481cf24c97..0c6714d856 100644 --- a/plugins/mail-notification/mail-notification.c +++ b/plugins/mail-notification/mail-notification.c @@ -36,7 +36,7 @@ #include <time.h> #include <e-util/e-config.h> -#include <mail/e-mail-folder-utils.h> +#include <libemail-engine/e-mail-folder-utils.h> #include <mail/em-utils.h> #include <mail/em-event.h> #include <mail/em-folder-tree.h> diff --git a/plugins/mail-to-task/Makefile.am b/plugins/mail-to-task/Makefile.am index 845a82c7a3..48f0724b6f 100644 --- a/plugins/mail-to-task/Makefile.am +++ b/plugins/mail-to-task/Makefile.am @@ -23,6 +23,7 @@ liborg_gnome_mail_to_task_la_LIBADD = \ $(top_builddir)/calendar/gui/libevolution-calendar.la \ $(top_builddir)/mail/libevolution-mail.la \ $(top_builddir)/widgets/misc/libemiscwidgets.la \ + $(top_builddir)/libemail-engine/libemail-engine.la \ $(EVOLUTION_DATA_SERVER_LIBS) \ $(GNOME_PLATFORM_LIBS) \ $(GTKHTML_LIBS) diff --git a/plugins/mail-to-task/mail-to-task.c b/plugins/mail-to-task/mail-to-task.c index a4713c5447..e338393a76 100644 --- a/plugins/mail-to-task/mail-to-task.c +++ b/plugins/mail-to-task/mail-to-task.c @@ -28,9 +28,9 @@ #include <config.h> #endif -#include <glib/gi18n-lib.h> -#include <string.h> #include <stdio.h> +#include <string.h> +#include <glib/gi18n-lib.h> #include <gtkhtml/gtkhtml.h> #include <libecal/e-cal-client.h> @@ -41,20 +41,25 @@ #include <libedataserverui/e-source-selector-dialog.h> #include <libedataserverui/e-client-utils.h> -#include <mail/e-mail-browser.h> -#include <mail/em-utils.h> -#include <mail/em-format-html.h> -#include <mail/message-list.h> -#include <e-util/e-account-utils.h> #include <e-util/e-dialog-utils.h> + +#include <libemail-utils/e-account-utils.h> + #include <misc/e-popup-action.h> +#include <misc/e-attachment-store.h> + #include <shell/e-shell-view.h> #include <shell/e-shell-window-actions.h> + +#include <mail/e-mail-browser.h> +#include <mail/em-utils.h> +#include <mail/em-format-html.h> +#include <mail/message-list.h> + #include <calendar/gui/dialogs/comp-editor.h> #include <calendar/gui/dialogs/event-editor.h> -#include <calendar/gui/dialogs/task-editor.h> #include <calendar/gui/dialogs/memo-editor.h> -#include <misc/e-attachment-store.h> +#include <calendar/gui/dialogs/task-editor.h> #define E_SHELL_WINDOW_ACTION_CONVERT_TO_EVENT(window) \ E_SHELL_WINDOW_ACTION ((window), "mail-convert-to-event") diff --git a/plugins/mailing-list-actions/Makefile.am b/plugins/mailing-list-actions/Makefile.am index 77f6fdce6e..a3c46efab2 100644 --- a/plugins/mailing-list-actions/Makefile.am +++ b/plugins/mailing-list-actions/Makefile.am @@ -21,6 +21,8 @@ liborg_gnome_mailing_list_actions_la_LIBADD = \ $(top_builddir)/composer/libcomposer.la \ $(top_builddir)/mail/libevolution-mail.la \ $(top_builddir)/shell/libeshell.la \ + $(top_builddir)/libemail-engine/libemail-engine.la \ + $(top_builddir)/libemail-utils/libemail-utils.la \ $(EVOLUTION_DATA_SERVER_LIBS) \ $(GNOME_PLATFORM_LIBS) \ $(GTKHTML_LIBS) diff --git a/plugins/mailing-list-actions/mailing-list-actions.c b/plugins/mailing-list-actions/mailing-list-actions.c index 8e849be972..a9bc811c1d 100644 --- a/plugins/mailing-list-actions/mailing-list-actions.c +++ b/plugins/mailing-list-actions/mailing-list-actions.c @@ -24,27 +24,32 @@ #include <config.h> #endif -#include <glib/gi18n-lib.h> #include <stdio.h> #include <string.h> #include <gtk/gtk.h> +#include <glib/gi18n-lib.h> + +#include <e-util/e-util.h> +#include <e-util/e-alert-dialog.h> + +#include <libemail-utils/e-account-utils.h> + +#include <shell/e-shell-view.h> +#include <shell/e-shell-window.h> +#include <shell/e-shell-window-actions.h> + +#include <composer/e-msg-composer.h> + +#include <libemail-utils/mail-mt.h> +#include <libemail-engine/mail-ops.h> -#include "composer/e-msg-composer.h" -#include "mail/e-mail-browser.h" -#include "mail/e-mail-reader.h" -#include "mail/em-composer-utils.h" -#include "mail/em-format-hook.h" -#include "mail/em-config.h" -#include "mail/em-utils.h" -#include "mail/mail-ops.h" -#include "mail/mail-mt.h" -#include "mail/message-list.h" -#include "e-util/e-util.h" -#include "e-util/e-account-utils.h" -#include "e-util/e-alert-dialog.h" -#include "shell/e-shell-view.h" -#include "shell/e-shell-window.h" -#include "shell/e-shell-window-actions.h" +#include <mail/e-mail-browser.h> +#include <mail/e-mail-reader.h> +#include <mail/em-composer-utils.h> +#include <mail/em-config.h> +#include <mail/em-format-hook.h> +#include <mail/em-utils.h> +#include <mail/message-list.h> /* EAlert Message IDs */ #define MESSAGE_PREFIX "org.gnome.mailing-list-actions:" diff --git a/plugins/mark-all-read/mark-all-read.c b/plugins/mark-all-read/mark-all-read.c index 476172d43e..beac49ae47 100644 --- a/plugins/mark-all-read/mark-all-read.c +++ b/plugins/mark-all-read/mark-all-read.c @@ -30,7 +30,8 @@ #include <glib/gi18n.h> #include <e-util/e-plugin-ui.h> -#include <mail/e-mail-folder-utils.h> +#include <libemail-engine/e-mail-folder-utils.h> + #include <mail/em-folder-tree.h> #include <mail/em-utils.h> diff --git a/plugins/pst-import/pst-importer.c b/plugins/pst-import/pst-importer.c index 4305827ed1..f1e61dd07c 100644 --- a/plugins/pst-import/pst-importer.c +++ b/plugins/pst-import/pst-importer.c @@ -53,10 +53,11 @@ #include <libedataserverui/e-source-combo-box.h> #include <libedataserverui/e-client-utils.h> +#include <libemail-utils/mail-mt.h> +#include <libemail-engine/mail-tools.h> + #include <mail/e-mail-backend.h> #include <mail/em-folder-selection-button.h> -#include <mail/mail-mt.h> -#include <mail/mail-tools.h> #include <mail/em-utils.h> #include <shell/e-shell.h> #include <shell/e-shell-window.h> diff --git a/plugins/templates/Makefile.am b/plugins/templates/Makefile.am index a64a10e1dd..948dfea677 100644 --- a/plugins/templates/Makefile.am +++ b/plugins/templates/Makefile.am @@ -23,6 +23,7 @@ liborg_gnome_templates_la_LIBADD = \ $(top_builddir)/composer/libcomposer.la \ $(top_builddir)/shell/libeshell.la \ $(top_builddir)/mail/libevolution-mail.la \ + $(top_builddir)/libemail-engine/libemail-engine.la \ $(EVOLUTION_DATA_SERVER_LIBS) \ $(GNOME_PLATFORM_LIBS) \ $(GTKHTML_LIBS) diff --git a/plugins/templates/templates.c b/plugins/templates/templates.c index 714a6f0e0b..2b62dc922d 100644 --- a/plugins/templates/templates.c +++ b/plugins/templates/templates.c @@ -30,19 +30,21 @@ #include <glib/gi18n.h> #include <string.h> +#include <e-util/e-alert-dialog.h> #include <e-util/e-config.h> +#include <e-util/e-plugin.h> +#include <e-util/e-util.h> + +#include <shell/e-shell-view.h> + +#include <libemail-engine/e-mail-folder-utils.h> +#include <libemail-engine/e-mail-session.h> +#include <libemail-engine/mail-ops.h> -#include <mail/e-mail-folder-utils.h> #include <mail/e-mail-reader.h> -#include <mail/e-mail-session.h> #include <mail/em-composer-utils.h> #include <mail/em-utils.h> -#include <mail/mail-ops.h> #include <mail/message-list.h> -#include <e-util/e-alert-dialog.h> -#include <e-util/e-plugin.h> -#include <e-util/e-util.h> -#include <shell/e-shell-view.h> #include <composer/e-msg-composer.h> |