From 5b8b97806ba19ce0bf3279965759f7a9d5696523 Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Mon, 29 Jul 2002 14:39:59 +0000 Subject: Don't use the folder's path as the physical URI; use CORBA Magic (TM) to 2002-07-26 Peter Williams * e-summary-mail.c (update_folder_cb): Don't use the folder's path as the physical URI; use CORBA Magic (TM) to figure it out. svn path=/trunk/; revision=17630 --- my-evolution/ChangeLog | 5 +++++ my-evolution/e-summary-mail.c | 14 ++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) (limited to 'my-evolution') diff --git a/my-evolution/ChangeLog b/my-evolution/ChangeLog index e3c41815dc..12303459a3 100644 --- a/my-evolution/ChangeLog +++ b/my-evolution/ChangeLog @@ -1,3 +1,8 @@ +2002-07-26 Peter Williams + + * e-summary-mail.c (update_folder_cb): Don't use the folder's path + as the physical URI; use CORBA Magic (TM) to figure it out. + 2002-07-29 Iain Holmes * e-summary-tasks.c (get_task_colour): Get the colour for a task: Red diff --git a/my-evolution/e-summary-mail.c b/my-evolution/e-summary-mail.c index ffa65159ef..aa9f81e57e 100644 --- a/my-evolution/e-summary-mail.c +++ b/my-evolution/e-summary-mail.c @@ -274,8 +274,18 @@ update_folder_cb (EvolutionStorageListener *listener, g_free (evolution_dir); uri = e_path_to_physical (proto, path); } else { - uri = g_strconcat (si->name, path, NULL); - g_print ("uri: %s\n", uri); + GNOME_Evolution_Folder *folder; + CORBA_Environment ev; + + CORBA_exception_init (&ev); + folder = GNOME_Evolution_Storage_getFolderAtPath (si->storage, path, &ev); + + if (BONOBO_EX (&ev)) + return; + + uri = g_strdup (folder->physicalUri); + CORBA_free (folder); + CORBA_exception_free (&ev); } g_idle_add (e_summary_mail_idle_get_info, uri); -- cgit v1.2.3