diff options
author | 0 <NotZed@Ximian.com> | 2001-09-11 08:32:20 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2001-09-11 08:32:20 +0800 |
commit | c7e1b2cbb026ff94c0a7daf4c623b5c4116116bf (patch) | |
tree | 95dd5ae2ba8e0ea6d1bc4198e2157a47ec8b1895 /mail/mail-folder-cache.c | |
parent | ec9803b91dc499b6864c1d1a6a8cf615760d7649 (diff) | |
download | gsoc2013-evolution-c7e1b2cbb026ff94c0a7daf4c623b5c4116116bf.tar.gz gsoc2013-evolution-c7e1b2cbb026ff94c0a7daf4c623b5c4116116bf.tar.zst gsoc2013-evolution-c7e1b2cbb026ff94c0a7daf4c623b5c4116116bf.zip |
Dynamically create the folder type list from camel. (reconfigure_clicked):
2001-09-10 <NotZed@Ximian.com>
* mail-local.c (mail_local_reconfigure_folder): Dynamically create
the folder type list from camel.
(reconfigure_clicked): And change code to handle changes.
2001-09-10 <NotZed@Ximian.com>
* merged mail_local patch from peterw. Many changes.
svn path=/trunk/; revision=12759
Diffstat (limited to 'mail/mail-folder-cache.c')
-rw-r--r-- | mail/mail-folder-cache.c | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/mail/mail-folder-cache.c b/mail/mail-folder-cache.c index 4a98ad1df1..10f0aeaf5b 100644 --- a/mail/mail-folder-cache.c +++ b/mail/mail-folder-cache.c @@ -36,8 +36,8 @@ #include "mail-mt.h" #include "mail-folder-cache.h" -#define ld(x) -#define d(x) +#define ld(x) +#define d(x) /* Structures */ @@ -896,6 +896,28 @@ mail_folder_cache_try_folder (const gchar *uri) return ret; } +gchar * +mail_folder_cache_try_name (const gchar *uri) +{ + mail_folder_info *mfi; + gchar *ret; + + g_return_val_if_fail (uri, NULL); + + LOCK_FOLDERS (); + + mfi = get_folder_info (uri); + + if (mfi->flags & MAIL_FIF_NAME_VALID) + ret = g_strdup (mfi->name); + else + ret = NULL; + + UNLOCK_FOLDERS (); + + return ret; +} + void mail_folder_cache_set_shell_view (GNOME_Evolution_ShellView sv) { |