From a9cfed5938aef37d95c009411f965ebc185547c1 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 16 Dec 2011 10:40:37 -0500 Subject: Avoid passing EMailBackend as much as possible. More mail API churn... reversing some previous API decisions. I've made some key API changes to EMailSession on the account-mgmt branch which should allow for this, and will hopefully also benefit the "email-factory" branch. EMailBackend barely needs to exist anymore, except as the owner of EMailSession. For several low-level functions, we replace its EMailBackend parameter with EMailSession and EAlertSink parameters; the latter so it can still pass user alerts up the chain. --- mail/mail-autofilter.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'mail/mail-autofilter.h') diff --git a/mail/mail-autofilter.h b/mail/mail-autofilter.h index 43671177ae..47f68c3be5 100644 --- a/mail/mail-autofilter.h +++ b/mail/mail-autofilter.h @@ -27,7 +27,7 @@ #include #include -#include +#include #include #include @@ -51,19 +51,18 @@ EFilterRule * em_vfolder_rule_from_address (EMVFolderContext *context, CamelFolder *folder); /* easiest place to put this */ -void filter_gui_add_from_message (EMailBackend *backend, +void filter_gui_add_from_message (EMailSession *session, CamelMimeMessage *msg, const gchar *source, gint flags); /* Also easiest place for these, we should really * share a global rule context for this stuff ... */ -void mail_filter_rename_folder (EMailBackend *backend, - CamelStore *store, +void mail_filter_rename_folder (CamelStore *store, const gchar *old_folder_name, const gchar *new_folder_name); -void mail_filter_delete_folder (EMailBackend *backend, - CamelStore *store, - const gchar *folder_name); +void mail_filter_delete_folder (CamelStore *store, + const gchar *folder_name, + EAlertSink *alert_sink); #endif /* MAIL_AUTOFILTER_H */ -- cgit v1.2.3