From f71a064770e324fb61d4e595151184c94d3f90d1 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Mon, 17 Nov 2003 03:32:41 +0000 Subject: thin wrapper on mail_component_get_local_inbox. 2003-11-17 Not Zed * 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 --- mail/mail-tools.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'mail/mail-tools.c') 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 * -- cgit