diff options
-rw-r--r-- | my-evolution/ChangeLog | 5 | ||||
-rw-r--r-- | my-evolution/e-summary-mail.c | 14 |
2 files changed, 17 insertions, 2 deletions
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 <peterw@ximian.com> + + * 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 <iain@ximian.com> * 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); |