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-component.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mail/mail-component.c') diff --git a/mail/mail-component.c b/mail/mail-component.c index a551eb26ce..db65ced743 100644 --- a/mail/mail-component.c +++ b/mail/mail-component.c @@ -676,6 +676,11 @@ mail_component_get_tree_model (MailComponent *component) return model; } +struct _CamelFolder * +mail_component_get_local_inbox(MailComponent *mc, struct _CamelException *ex) +{ + return camel_store_get_folder(mc->priv->local_store, "Inbox", 0, ex); +} extern struct _CamelSession *session; -- cgit