diff options
-rw-r--r-- | mail/ChangeLog | 5 | ||||
-rw-r--r-- | mail/mail-component.c | 7 | ||||
-rw-r--r-- | mail/mail-component.h | 2 |
3 files changed, 14 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 949d02cff8..713ff672da 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2005-05-20 Not Zed <NotZed@Ximian.com> + + * mail-component.c (mail_component_peek_session): add helper for + plugins to get mail session. + 2005-05-19 Chenthill Palanisamy <pchenthill@novell.com> * mail.error.xml: Added a error message required for diff --git a/mail/mail-component.c b/mail/mail-component.c index 6679c08bb6..a1945d4e9c 100644 --- a/mail/mail-component.c +++ b/mail/mail-component.c @@ -950,6 +950,13 @@ mail_component_peek_activity_handler (MailComponent *component) return component->priv->activity_handler; } +struct _CamelSession *mail_component_peek_session(MailComponent *component) +{ + MAIL_COMPONENT_DEFAULT(component); + + return session; +} + void mail_component_add_store (MailComponent *component, CamelStore *store, const char *name) { diff --git a/mail/mail-component.h b/mail/mail-component.h index 806b53263e..baaf2ea2fd 100644 --- a/mail/mail-component.h +++ b/mail/mail-component.h @@ -71,6 +71,8 @@ const char *mail_component_peek_base_directory (MailComponent *componen struct _RuleContext *mail_component_peek_search_context (MailComponent *component); struct _EActivityHandler *mail_component_peek_activity_handler (MailComponent *component); +struct _CamelSession *mail_component_peek_session(MailComponent *); + void mail_component_add_store (MailComponent *component, struct _CamelStore *store, const char *name); |