From a06e4484b8df804124b5bcf88d94dec5acfba270 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 6 Oct 2010 23:38:52 -0400 Subject: Give MailSession a permanent home. Global variables in shared libraries are a bad idea. EMailBackend now owns the MailSession instance, which is actually now EMailSession. Move the blocking utility functions in mail-tools.c to e-mail-session.c and add asynchronous variants. Same approach as Camel. Replace EMailReader.get_shell_backend() with EMailReader.get_backend(), which returns an EMailBackend. Easier access to the EMailSession. --- mail/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mail/Makefile.am') diff --git a/mail/Makefile.am b/mail/Makefile.am index 79db282629..f30de3eea9 100644 --- a/mail/Makefile.am +++ b/mail/Makefile.am @@ -54,6 +54,7 @@ mailinclude_HEADERS = \ e-mail-migrate.h \ e-mail-reader.h \ e-mail-reader-utils.h \ + e-mail-session.h \ e-mail-sidebar.h \ e-mail-store.h \ e-mail-tag-editor.h \ @@ -92,7 +93,6 @@ mailinclude_HEADERS = \ mail-mt.h \ mail-ops.h \ mail-send-recv.h \ - mail-session.h \ mail-tools.h \ mail-vfolder.h \ message-list.h @@ -123,6 +123,7 @@ libevolution_mail_la_SOURCES = \ e-mail-migrate.c \ e-mail-reader.c \ e-mail-reader-utils.c \ + e-mail-session.c \ e-mail-sidebar.c \ e-mail-store.c \ e-mail-tag-editor.c \ @@ -161,7 +162,6 @@ libevolution_mail_la_SOURCES = \ mail-mt.c \ mail-ops.c \ mail-send-recv.c \ - mail-session.c \ mail-tools.c \ mail-vfolder.c \ message-list.c -- cgit