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/mail-tools.h | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'mail/mail-tools.h') diff --git a/mail/mail-tools.h b/mail/mail-tools.h index 21d3510300..096ec7f337 100644 --- a/mail/mail-tools.h +++ b/mail/mail-tools.h @@ -26,17 +26,6 @@ #include #include -/* Get the "inbox" for a url (uses global session) */ -CamelFolder * mail_tool_get_inbox (const gchar *url, - GCancellable *cancellable, - GError **error); - -/* Get the "trash" for a url (uses global session) */ -CamelFolder * mail_tool_get_trash (const gchar *url, - gint connect, - GCancellable *cancellable, - GError **error); - /* Does a camel_movemail into the local movemail folder * and returns the path to the new movemail folder that was created. which shoudl be freed later */ gchar *mail_tool_do_movemail (const gchar *source_url, GError **error); @@ -50,14 +39,6 @@ gchar *mail_tool_generate_forward_subject (CamelMimeMessage *msg); /* Make a message into an attachment */ CamelMimePart *mail_tool_make_message_attachment (CamelMimeMessage *message); -/* Parse the URI into a real CamelFolder any way we know how. */ -CamelFolder * mail_tool_uri_to_folder (const gchar *uri, - guint32 flags, - GCancellable *cancellable, - GError **error); - -GHashTable *mail_lookup_url_table (CamelMimeMessage *mime_message); - gchar *mail_tools_folder_to_url (CamelFolder *folder); #endif -- cgit v1.2.3