diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-04-13 22:30:40 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-06-03 11:00:40 +0800 |
commit | 3449e5fcc7f9c797fcde7f2a444b1eb7a934cd81 (patch) | |
tree | ff59febf4ac0c6316ef344ea25cee002088bd314 /libemail-engine/e-mail-utils.h | |
parent | f78795f4dff8b225d78385c5e23e1cd44ee946ad (diff) | |
download | gsoc2013-evolution-3449e5fcc7f9c797fcde7f2a444b1eb7a934cd81.tar.gz gsoc2013-evolution-3449e5fcc7f9c797fcde7f2a444b1eb7a934cd81.tar.zst gsoc2013-evolution-3449e5fcc7f9c797fcde7f2a444b1eb7a934cd81.zip |
Adapt mail to the new ESource API.
Diffstat (limited to 'libemail-engine/e-mail-utils.h')
-rw-r--r-- | libemail-engine/e-mail-utils.h | 38 |
1 files changed, 28 insertions, 10 deletions
diff --git a/libemail-engine/e-mail-utils.h b/libemail-engine/e-mail-utils.h index ca8ed010ca..b3782876f4 100644 --- a/libemail-engine/e-mail-utils.h +++ b/libemail-engine/e-mail-utils.h @@ -23,21 +23,39 @@ #define E_MAIL_UTILS_H #include <camel/camel.h> -#include <libedataserver/e-account.h> +#include <libedataserver/e-source-registry.h> -gboolean em_utils_folder_is_drafts (CamelFolder *folder); -gboolean em_utils_folder_is_templates (CamelFolder *folder); -gboolean em_utils_folder_is_sent (CamelFolder *folder); -gboolean em_utils_folder_is_outbox (CamelFolder *folder); -gboolean em_utils_in_addressbook (CamelInternetAddress *addr, +gboolean em_utils_folder_is_drafts (ESourceRegistry *registry, + CamelFolder *folder); +gboolean em_utils_folder_is_templates (ESourceRegistry *registry, + CamelFolder *folder); +gboolean em_utils_folder_is_sent (ESourceRegistry *registry, + CamelFolder *folder); +gboolean em_utils_folder_is_outbox (ESourceRegistry *registry, + CamelFolder *folder); +gboolean em_utils_in_addressbook (ESourceRegistry *registry, + CamelInternetAddress *addr, gboolean local_only); -CamelMimePart * em_utils_contact_photo (CamelInternetAddress *addr, +CamelMimePart * em_utils_contact_photo (ESourceRegistry *registry, + CamelInternetAddress *addr, gboolean local); -EAccount * em_utils_guess_account (CamelMimeMessage *message, +ESource * em_utils_guess_mail_account (ESourceRegistry *registry, + CamelMimeMessage *message, + CamelFolder *folder); +ESource * em_utils_guess_mail_identity (ESourceRegistry *registry, + CamelMimeMessage *message, + CamelFolder *folder); +ESource * em_utils_guess_mail_account_with_recipients + (ESourceRegistry *registry, + CamelMimeMessage *message, CamelFolder *folder); -EAccount * em_utils_guess_account_with_recipients - (CamelMimeMessage *message, +ESource * em_utils_guess_mail_identity_with_recipients + (ESourceRegistry *registry, + CamelMimeMessage *message, CamelFolder *folder); +ESource * em_utils_ref_mail_identity_for_store + (ESourceRegistry *registry, + CamelStore *store); void emu_remove_from_mail_cache (const GSList *addresses); void emu_remove_from_mail_cache_1 (const gchar *address); void emu_free_mail_cache (void); |