diff options
-rw-r--r-- | mail/ChangeLog | 2 | ||||
-rw-r--r-- | mail/em-migrate.c | 10 |
2 files changed, 12 insertions, 0 deletions
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; |