aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-tools.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-10-07 11:38:52 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-10-13 01:58:59 +0800
commita06e4484b8df804124b5bcf88d94dec5acfba270 (patch)
tree4fa42793d7dc461f2b3767296d76592182c48222 /mail/mail-tools.h
parent5e0758bb6934a7859b1d8a247c8fb21c156772cf (diff)
downloadgsoc2013-evolution-a06e4484b8df804124b5bcf88d94dec5acfba270.tar.gz
gsoc2013-evolution-a06e4484b8df804124b5bcf88d94dec5acfba270.tar.zst
gsoc2013-evolution-a06e4484b8df804124b5bcf88d94dec5acfba270.zip
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.
Diffstat (limited to 'mail/mail-tools.h')
-rw-r--r--mail/mail-tools.h19
1 files changed, 0 insertions, 19 deletions
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 <glib.h>
#include <camel/camel.h>
-/* 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