diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-10-07 11:38:52 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-10-13 01:58:59 +0800 |
commit | a06e4484b8df804124b5bcf88d94dec5acfba270 (patch) | |
tree | 4fa42793d7dc461f2b3767296d76592182c48222 /mail/mail-autofilter.h | |
parent | 5e0758bb6934a7859b1d8a247c8fb21c156772cf (diff) | |
download | gsoc2013-evolution-a06e4484b8df804124b5bcf88d94dec5acfba270.tar gsoc2013-evolution-a06e4484b8df804124b5bcf88d94dec5acfba270.tar.gz gsoc2013-evolution-a06e4484b8df804124b5bcf88d94dec5acfba270.tar.bz2 gsoc2013-evolution-a06e4484b8df804124b5bcf88d94dec5acfba270.tar.lz gsoc2013-evolution-a06e4484b8df804124b5bcf88d94dec5acfba270.tar.xz gsoc2013-evolution-a06e4484b8df804124b5bcf88d94dec5acfba270.tar.zst gsoc2013-evolution-a06e4484b8df804124b5bcf88d94dec5acfba270.zip |
Give MailSession a permanent home.
Global variables in shared libraries are a bad idea. EMailBackend now
owns the MailSession instance, which is actually now EMailSession.
Move the blocking utility functions in mail-tools.c to e-mail-session.c
and add asynchronous variants. Same approach as Camel.
Replace EMailReader.get_shell_backend() with EMailReader.get_backend(),
which returns an EMailBackend. Easier access to the EMailSession.
Diffstat (limited to 'mail/mail-autofilter.h')
-rw-r--r-- | mail/mail-autofilter.h | 37 |
1 files changed, 27 insertions, 10 deletions
diff --git a/mail/mail-autofilter.h b/mail/mail-autofilter.h index 7e385eb36f..35e5c3aac1 100644 --- a/mail/mail-autofilter.h +++ b/mail/mail-autofilter.h @@ -21,8 +21,8 @@ * */ -#ifndef _MAIL_AUTOFILTER_H -#define _MAIL_AUTOFILTER_H +#ifndef MAIL_AUTOFILTER_H +#define MAIL_AUTOFILTER_H #include <camel/camel.h> @@ -37,15 +37,32 @@ enum { AUTO_MLIST = 8 }; -EFilterRule *em_vfolder_rule_from_message (EMVFolderContext *context, CamelMimeMessage *msg, gint flags, const gchar *source); -EFilterRule *filter_rule_from_message (EMFilterContext *context, CamelMimeMessage *msg, gint flags); -EFilterRule *em_vfolder_rule_from_address (EMVFolderContext *context, CamelInternetAddress *addr, gint flags, const gchar *source); +EFilterRule * em_vfolder_rule_from_message (EMVFolderContext *context, + CamelMimeMessage *msg, + gint flags, + const gchar *source); +EFilterRule * filter_rule_from_message (EMFilterContext *context, + CamelMimeMessage *msg, + gint flags); +EFilterRule * em_vfolder_rule_from_address (EMVFolderContext *context, + CamelInternetAddress *addr, + gint flags, + const gchar *source); /* easiest place to put this */ -void filter_gui_add_from_message (CamelMimeMessage *msg, const gchar *source, gint flags); +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_uri (CamelStore *store, const gchar *olduri, const gchar *newuri); -void mail_filter_delete_uri (CamelStore *store, const gchar *uri); +/* Also easiest place for these, we should really + * share a global rule context for this stuff ... */ +void mail_filter_rename_uri (EMailSession *session, + CamelStore *store, + const gchar *olduri, + const gchar *newuri); +void mail_filter_delete_uri (EMailSession *session, + CamelStore *store, + const gchar *uri); -#endif +#endif /* MAIL_AUTOFILTER_H */ |