aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-tools.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2003-11-17 11:32:41 +0800
committerMichael Zucci <zucchi@src.gnome.org>2003-11-17 11:32:41 +0800
commitf71a064770e324fb61d4e595151184c94d3f90d1 (patch)
tree9bf3e1327e0a034cddf7c92d74e8e7d724b8f17c /mail/mail-tools.c
parent4daa7491aad977c5fa705076e3ca9b80e51b3ab5 (diff)
downloadgsoc2013-evolution-f71a064770e324fb61d4e595151184c94d3f90d1.tar.gz
gsoc2013-evolution-f71a064770e324fb61d4e595151184c94d3f90d1.tar.zst
gsoc2013-evolution-f71a064770e324fb61d4e595151184c94d3f90d1.zip
thin wrapper on mail_component_get_local_inbox.
2003-11-17 Not Zed <NotZed@Ximian.com> * mail-tools.c (mail_tool_get_local_inbox): thin wrapper on mail_component_get_local_inbox. * mail-component.c (mail_component_get_local_inbox): helper to get the default local inbox. * mail-ops.c (fetch_mail_fetch): if we can't get the inbox, make sure we still unref the filter driver here by using hte same exit code. Fixes a crash. svn path=/trunk/; revision=23377
Diffstat (limited to 'mail/mail-tools.c')
-rw-r--r--mail/mail-tools.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/mail/mail-tools.c b/mail/mail-tools.c
index 0538efd354..9a10b0eb5b 100644
--- a/mail/mail-tools.c
+++ b/mail/mail-tools.c
@@ -59,15 +59,7 @@
CamelFolder *
mail_tool_get_local_inbox (CamelException *ex)
{
- CamelFolder *folder;
- char *url;
-
- url = g_strdup_printf("file://%s/local/Inbox",
- mail_component_peek_base_directory (mail_component_peek ()));
- folder = mail_tool_uri_to_folder (url, 0, ex);
- g_free (url);
-
- return folder;
+ return mail_component_get_local_inbox(mail_component_peek(), ex);
}
CamelFolder *