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 /my-evolution/e-summary-mail.c | |
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
Diffstat (limited to 'my-evolution/e-summary-mail.c')
-rw-r--r-- | my-evolution/e-summary-mail.c | 14 |
1 files changed, 12 insertions, 2 deletions
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); |