diff options
author | Peter Williams <peterw@ximian.com> | 2002-07-29 22:39:59 +0800 |
---|---|---|
committer | Peter Williams <peterw@src.gnome.org> | 2002-07-29 22:39:59 +0800 |
commit | 5b8b97806ba19ce0bf3279965759f7a9d5696523 (patch) | |
tree | 156968910f1dd86012156300f6a9658f8649d708 | |
parent | ce0947b5aa142349e02473cafad0cfb1bd737860 (diff) | |
download | gsoc2013-evolution-5b8b97806ba19ce0bf3279965759f7a9d5696523.tar.gz gsoc2013-evolution-5b8b97806ba19ce0bf3279965759f7a9d5696523.tar.zst gsoc2013-evolution-5b8b97806ba19ce0bf3279965759f7a9d5696523.zip |
Don't use the folder's path as the physical URI; use CORBA Magic (TM) to
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.
svn path=/trunk/; revision=17630
-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); |