From 12b2cfb7410fb091fde463332454dc8fce4f91c9 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 20 Jan 2004 20:51:01 +0000 Subject: New function to migrate the imap cache. (em_migrate_1_4): Migrate the IMAP 2004-01-20 Jeffrey Stedfast * em-migrate.c (em_migrate_imap_caches_1_4): New function to migrate the imap cache. (em_migrate_1_4): Migrate the IMAP cache. Fixes bug #52985. (em_migrate_1_4): Copy over the searches.xml file. Fixes bug #52980. svn path=/trunk/; revision=24332 --- mail/ChangeLog | 2 ++ mail/em-migrate.c | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/mail/ChangeLog b/mail/ChangeLog index cfe04b165a..c005e24e63 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -3,6 +3,8 @@ * em-migrate.c (em_migrate_imap_caches_1_4): New function to migrate the imap cache. (em_migrate_1_4): Migrate the IMAP cache. Fixes bug #52985. + (em_migrate_1_4): Copy over the searches.xml file. Fixes bug + #52980. * mail-session.c (request_password): Changed the logic of the visibility of the passwd text so that we hid ethe passwd if the diff --git a/mail/em-migrate.c b/mail/em-migrate.c index b925059bc9..2ac818f3a0 100644 --- a/mail/em-migrate.c +++ b/mail/em-migrate.c @@ -1878,6 +1878,16 @@ em_migrate_1_4 (const char *evolution_dir, xmlDocPtr filters, xmlDocPtr vfolders if (em_upgrade_xml_1_4 (vfolders) == -1) return -1; + path = g_build_filename (g_get_home_dir (), "evolution", "searches.xml", NULL); + if (stat (path, &st) == 0 && S_ISREG (st.st_mode)) { + char *dest; + + dest = g_build_filename (evolution_dir, "mail", "searches.xml", NULL); + cp (path, dest); + g_free (dest); + } + g_free (path); + if (em_migrate_pop_uid_caches_1_4 (evolution_dir, ex) == -1) return -1; -- cgit v1.2.3