diff options
author | Fridrich Strba <fridrich.strba@bluewin.ch> | 2010-03-06 04:48:14 +0800 |
---|---|---|
committer | Fridrich Strba <fridrich.strba@bluewin.ch> | 2010-03-06 04:50:41 +0800 |
commit | 1d0b7ce50a48c2840ecd2435fa28e40ddfe91aa0 (patch) | |
tree | 326b732ea96ee15dd3fbae00cb5e4bb9f2835b91 | |
parent | 8d2dc2cec92599dfe51e8351e6d98cf0035300e3 (diff) | |
download | gsoc2013-evolution-1d0b7ce50a48c2840ecd2435fa28e40ddfe91aa0.tar gsoc2013-evolution-1d0b7ce50a48c2840ecd2435fa28e40ddfe91aa0.tar.gz gsoc2013-evolution-1d0b7ce50a48c2840ecd2435fa28e40ddfe91aa0.tar.bz2 gsoc2013-evolution-1d0b7ce50a48c2840ecd2435fa28e40ddfe91aa0.tar.lz gsoc2013-evolution-1d0b7ce50a48c2840ecd2435fa28e40ddfe91aa0.tar.xz gsoc2013-evolution-1d0b7ce50a48c2840ecd2435fa28e40ddfe91aa0.tar.zst gsoc2013-evolution-1d0b7ce50a48c2840ecd2435fa28e40ddfe91aa0.zip |
Migration from other versions is not supported on Windows
-rw-r--r-- | mail/e-mail-migrate.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mail/e-mail-migrate.c b/mail/e-mail-migrate.c index 1f9720ceeb..e262dc7126 100644 --- a/mail/e-mail-migrate.c +++ b/mail/e-mail-migrate.c @@ -2805,6 +2805,8 @@ em_update_sa_junk_setting_2_23 (void) g_object_unref (client); } +#ifndef G_OS_WIN32 + static gboolean update_states_in_main_thread (const struct _migrate_state_info * info) { @@ -2852,6 +2854,8 @@ migrate_folders(CamelStore *store, gboolean is_local, CamelFolderInfo *fi, const *done = TRUE; } +#endif /* G_OS_WIN32 */ + /* This could be in CamelStore.ch */ static void count_folders (CamelFolderInfo *fi, gint *count) @@ -2884,6 +2888,8 @@ setup_local_store (EShellBackend *shell_backend, return store; } +#ifndef G_OS_WIN32 + struct migrate_folders_to_db_structure { gchar *account_name; CamelException ex; @@ -3002,6 +3008,8 @@ migrate_to_db (EShellBackend *shell_backend) g_object_unref (session); } +#endif + gboolean e_mail_migrate (EShellBackend *shell_backend, gint major, @@ -3099,11 +3107,19 @@ e_mail_migrate (EShellBackend *shell_backend, } if (major < 2 || (major == 2 && minor < 22)) +#ifndef G_OS_WIN32 em_update_message_notify_settings_2_21 (); +#else + g_error ("Upgrading from ancient versions not supported on Windows"); +#endif if (major < 2 || (major == 2 && minor < 24)) { +#ifndef G_OS_WIN32 em_update_sa_junk_setting_2_23 (); migrate_to_db (shell_backend); +#else + g_error ("Upgrading from ancient versions not supported on Windows"); +#endif } return TRUE; |