aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-migrate.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/e-mail-migrate.c')
-rw-r--r--mail/e-mail-migrate.c43
1 files changed, 21 insertions, 22 deletions
diff --git a/mail/e-mail-migrate.c b/mail/e-mail-migrate.c
index 7f59d16a48..202bbaaca5 100644
--- a/mail/e-mail-migrate.c
+++ b/mail/e-mail-migrate.c
@@ -533,7 +533,13 @@ update_states_in_main_thread (const struct _migrate_state_info * info)
}
static void
-migrate_folders(CamelStore *store, gboolean is_local, CamelFolderInfo *fi, const gchar *acc, CamelException *ex, gboolean *done, gint *nth_folder, gint total_folders)
+migrate_folders (CamelStore *store,
+ gboolean is_local,
+ CamelFolderInfo *fi,
+ const gchar *acc,
+ gboolean *done,
+ gint *nth_folder,
+ gint total_folders)
{
CamelFolder *folder;
@@ -550,13 +556,13 @@ migrate_folders(CamelStore *store, gboolean is_local, CamelFolderInfo *fi, const
g_idle_add ((GSourceFunc) update_states_in_main_thread, info);
if (is_local)
- folder = camel_store_get_folder (store, fi->full_name, CAMEL_STORE_IS_MIGRATING, ex);
+ folder = camel_store_get_folder (store, fi->full_name, CAMEL_STORE_IS_MIGRATING, NULL);
else
- folder = camel_store_get_folder (store, fi->full_name, 0, ex);
+ folder = camel_store_get_folder (store, fi->full_name, 0, NULL);
if (folder != NULL)
camel_folder_summary_migrate_infos (folder->summary);
- migrate_folders(store, is_local, fi->child, acc, ex, done, nth_folder, total_folders);
+ migrate_folders(store, is_local, fi->child, acc, done, nth_folder, total_folders);
fi = fi->next;
}
@@ -601,12 +607,11 @@ setup_local_store (EShellBackend *shell_backend,
#ifndef G_OS_WIN32
struct migrate_folders_to_db_structure {
- gchar *account_name;
- CamelException ex;
- CamelStore *store;
- CamelFolderInfo *info;
- gboolean done;
- gboolean is_local_store;
+ gchar *account_name;
+ CamelStore *store;
+ CamelFolderInfo *info;
+ gboolean done;
+ gboolean is_local_store;
};
static void
@@ -614,9 +619,10 @@ migrate_folders_to_db_thread (struct migrate_folders_to_db_structure *migrate_db
{
gint num_of_folders = 0, nth_folder = 0;
count_folders (migrate_dbs->info, &num_of_folders);
- migrate_folders (migrate_dbs->store, migrate_dbs->is_local_store, migrate_dbs->info,
- migrate_dbs->account_name, &(migrate_dbs->ex), &(migrate_dbs->done),
- &nth_folder, num_of_folders);
+ migrate_folders (
+ migrate_dbs->store, migrate_dbs->is_local_store,
+ migrate_dbs->info, migrate_dbs->account_name,
+ &(migrate_dbs->done), &nth_folder, num_of_folders);
}
static void
@@ -655,7 +661,6 @@ migrate_to_db (EShellBackend *shell_backend)
migrate_dbs.is_local_store = TRUE;
else
migrate_dbs.is_local_store = FALSE;
- camel_exception_init (&migrate_dbs.ex);
migrate_dbs.account_name = _("On This Computer");
migrate_dbs.info = info;
migrate_dbs.store = store;
@@ -681,17 +686,13 @@ migrate_to_db (EShellBackend *shell_backend)
&& service->url[0]
&& strncmp(service->url, "mbox:", 5) != 0) {
- CamelException ex;
-
- camel_exception_init (&ex);
e_mail_store_add_by_uri (service->url, name);
- store = (CamelStore *) camel_session_get_service (CAMEL_SESSION (session), service->url, CAMEL_PROVIDER_STORE, &ex);
- info = camel_store_get_folder_info (store, NULL, CAMEL_STORE_FOLDER_INFO_RECURSIVE|CAMEL_STORE_FOLDER_INFO_FAST|CAMEL_STORE_FOLDER_INFO_SUBSCRIBED, &ex);
+ store = (CamelStore *) camel_session_get_service (CAMEL_SESSION (session), service->url, CAMEL_PROVIDER_STORE, NULL);
+ info = camel_store_get_folder_info (store, NULL, CAMEL_STORE_FOLDER_INFO_RECURSIVE|CAMEL_STORE_FOLDER_INFO_FAST|CAMEL_STORE_FOLDER_INFO_SUBSCRIBED, NULL);
if (info) {
struct migrate_folders_to_db_structure migrate_dbs;
- migrate_dbs.ex = ex;
migrate_dbs.account_name = account->name;
migrate_dbs.info = info;
migrate_dbs.store = store;
@@ -702,8 +703,6 @@ migrate_to_db (EShellBackend *shell_backend)
g_main_context_iteration (NULL, TRUE);
} else
printf("%s:%s: failed to get folder infos \n", G_STRLOC, G_STRFUNC);
- camel_exception_clear(&ex);
-
}
i++;
e_iterator_next (iter);
* security/py-{acme,certbot*}: Update to 1.27.0Yasuhiro Kimura2022-05-041-3/+3 * security/py-{acme,certbot*}: Update to 1.26.0Yasuhiro Kimura2022-04-162-4/+4 * security/{py-acme,py-certbot*}: Update to 1.22.0Yasuhiro Kimura2021-12-201-3/+3 * security-py-{acme,certbot*}: Update to 1.21.0Yasuhiro Kimura2021-11-061-3/+3 * security/{py-acme,py-certbot*}: Update to 1.20.0Yasuhiro Kimura2021-10-171-3/+3 * security/py-{acme,certbot*}: Update to 1.18.0Yasuhiro Kimura2021-08-051-3/+3 * security/py-[acme|certbot]: Update to 1.17.0Yasuhiro Kimura2021-07-111-3/+3 * security/py-[acme|certbot]: Update to 1.16.0Yasuhiro Kimura2021-06-261-3/+3 * security/py-[acme|certbot]: Update to 1.15.0Danilo G. Baio2021-05-101-3/+3 * security/py-[acme|certbot]: Update to 1.14.0Danilo G. Baio2021-04-111-3/+3 * One more small cleanup, forgotten yesterday.Mathieu Arnold2021-04-071-1/+0 * Remove # $FreeBSD$ from Makefiles.Mathieu Arnold2021-04-061-1/+0 * security/py-[acme|certbot]: Update to 1.13.0Danilo G. Baio2021-03-082-4/+3 * security/py-[acme|certbot]: Update to 1.11.0Danilo G. Baio2021-01-091-3/+3 * Drop python 2.7 support from a few portsAntoine Brodin2020-12-291-1/+1 * security/py-[acme|certbot]: Update to 1.10.1Danilo G. Baio2020-12-061-3/+3 * security/py-[acme|certbot]: Update to 1.9.0Danilo G. Baio2020-10-111-3/+3 * security/py-[acme|certbot]: Update to 1.8.0Danilo G. Baio2020-09-281-3/+3 * security/py-[acme|certbot]: Update to 1.7.0Danilo G. Baio2020-08-081-3/+3 * security/py-[acme|certbot]: Update to 1.6.0Danilo G. Baio2020-07-122-8/+3 * security/py-[acme|certbot]: Update to 1.5.0Danilo G. Baio2020-06-071-3/+3 * security/py-[acme|certbot]: Update to 1.4.0Danilo G. Baio2020-05-121-3/+3 * Update SphinxDanilo G. Baio2020-05-121-1/+1 * security/py-[acme|certbot]: Update to 1.3.0Danilo G. Baio2020-03-181-3/+3 * Update to 1.2.0Sunpoet Po-Chuan Hsieh2020-02-231-3/+3 * Update to 1.1.0Sunpoet Po-Chuan Hsieh2020-01-271-3/+3 * security/py-{acme|certbot*}: update 0.39 -> 1.0.0Kurt Jaeger2019-12-271-3/+3 * Update to 0.39.0Sunpoet Po-Chuan Hsieh2019-10-041-3/+3 * Update to 0.38.0Sunpoet Po-Chuan Hsieh2019-09-061-3/+3 * Update to 0.37.2Sunpoet Po-Chuan Hsieh2019-08-241-3/+3 * Update to 0.37.1Sunpoet Po-Chuan Hsieh2019-08-111-3/+3 * Update to 0.37.0Sunpoet Po-Chuan Hsieh2019-08-101-3/+3 * Update to 0.36.0Sunpoet Po-Chuan Hsieh2019-07-131-3/+3 * Update to 0.35.1Sunpoet Po-Chuan Hsieh2019-06-301-3/+3 * Update to 0.34.2Sunpoet Po-Chuan Hsieh2019-05-131-3/+3 * Update to 0.33.1Sunpoet Po-Chuan Hsieh2019-04-291-3/+3 * Remove unnecessary PORTREVISION=0Sunpoet Po-Chuan Hsieh2019-02-121-1/+0 * Update to 0.31.0Sunpoet Po-Chuan Hsieh2019-02-111-3/+3 * Update to 0.30.2Sunpoet Po-Chuan Hsieh2019-01-261-3/+3 * Update to 0.30.1Sunpoet Po-Chuan Hsieh2019-01-261-3/+3 * - Update to 0.30.0Martin Wilke2019-01-221-3/+3 * Update to 0.29.1Sunpoet Po-Chuan Hsieh2018-12-071-3/+3 * Update to 0.28.0Sunpoet Po-Chuan Hsieh2018-11-251-3/+3 * Update to 0.27.1Sunpoet Po-Chuan Hsieh2018-09-081-3/+3 * Update to 0.27.0Sunpoet Po-Chuan Hsieh2018-09-071-3/+3 * - Update to 0.26.1Martin Wilke2018-07-281-3/+3 * - Update to 0.25.1Martin Wilke2018-06-201-3/+3 * - Update to 0.25.0Martin Wilke2018-06-102-10/+10 * Update to 0.24.0Sunpoet Po-Chuan Hsieh2018-05-041-3/+3 * Note that both security/py-acme and security/py-certbot have PORTEPOCH set.Mathieu Arnold2018-04-141-2/+2 * Update to 0.23.0Sunpoet Po-Chuan Hsieh2018-04-122-4/+4 * Update acme/certbot ports to 0.22.2.Mathieu Arnold2018-03-201-3/+3 * - Update to 0.22.0Martin Wilke2018-03-082-4/+4 * Add missing dependency.Mathieu Arnold2018-02-231-0/+2