aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail/e-mail-shell-backend.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-08-18 10:20:50 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-08-18 10:27:46 +0800
commitef929f26973d8d5712a6962c804b1dc0b439d0a9 (patch)
tree2dec2dc401b93010d354bbf4c62bc5bf38bc8562 /modules/mail/e-mail-shell-backend.c
parentdd57574c0427b4571c1daac42b6ffa636a8c80c1 (diff)
downloadgsoc2013-evolution-ef929f26973d8d5712a6962c804b1dc0b439d0a9.tar
gsoc2013-evolution-ef929f26973d8d5712a6962c804b1dc0b439d0a9.tar.gz
gsoc2013-evolution-ef929f26973d8d5712a6962c804b1dc0b439d0a9.tar.bz2
gsoc2013-evolution-ef929f26973d8d5712a6962c804b1dc0b439d0a9.tar.lz
gsoc2013-evolution-ef929f26973d8d5712a6962c804b1dc0b439d0a9.tar.xz
gsoc2013-evolution-ef929f26973d8d5712a6962c804b1dc0b439d0a9.tar.zst
gsoc2013-evolution-ef929f26973d8d5712a6962c804b1dc0b439d0a9.zip
e_mail_store_foreach(): Take an EMailSession parameter.
Use camel_session_list_services() instead of the internal store table. The store table serves little purpose nowadays and could probably be removed. I'll look into that later.
Diffstat (limited to 'modules/mail/e-mail-shell-backend.c')
-rw-r--r--modules/mail/e-mail-shell-backend.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/mail/e-mail-shell-backend.c b/modules/mail/e-mail-shell-backend.c
index 76762c308c..93500279e7 100644
--- a/modules/mail/e-mail-shell-backend.c
+++ b/modules/mail/e-mail-shell-backend.c
@@ -234,6 +234,8 @@ mail_shell_backend_mail_sync (EMailShellBackend *mail_shell_backend)
{
EShell *shell;
EShellBackend *shell_backend;
+ EMailBackend *backend;
+ EMailSession *session;
shell_backend = E_SHELL_BACKEND (mail_shell_backend);
shell = e_shell_backend_get_shell (shell_backend);
@@ -246,8 +248,11 @@ mail_shell_backend_mail_sync (EMailShellBackend *mail_shell_backend)
if (mail_shell_backend->priv->mail_sync_in_progress)
goto exit;
+ backend = E_MAIL_BACKEND (mail_shell_backend);
+ session = e_mail_backend_get_session (backend);
+
e_mail_store_foreach (
- (GFunc) mail_shell_backend_sync_store_cb,
+ session, (GFunc) mail_shell_backend_sync_store_cb,
mail_shell_backend);
exit: