aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-tools.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-10-02 03:11:32 +0800
committerDan Winship <danw@src.gnome.org>2001-10-02 03:11:32 +0800
commit14d9f8c04e5e4411d0bb420bd772a6b3dfee97a3 (patch)
tree444c0e57b625a2e9593a796ac4dcf5851e21b823 /mail/mail-tools.c
parent80a4835173ca22b1eeb7b29f3eb16e49207bb808 (diff)
downloadgsoc2013-evolution-14d9f8c04e5e4411d0bb420bd772a6b3dfee97a3.tar.gz
gsoc2013-evolution-14d9f8c04e5e4411d0bb420bd772a6b3dfee97a3.tar.zst
gsoc2013-evolution-14d9f8c04e5e4411d0bb420bd772a6b3dfee97a3.zip
Don't use mail_tool_get_folder_name here since that function only existed
* mail-local.c (mail_local_reconfigure_folder): Don't use mail_tool_get_folder_name here since that function only existed to be clever in a certain case that this is not. (reconfigure_folder_free): Remove the dialog from the hash table here so that it gets removed in the successfully-reconfigured case too. Don't unref folder_out if it never got set. (reconfigure_clicked): Remove the hash table code from here; it's in reconfigure_folder_free now. * mail-tools.c (mail_tool_get_folder_name): No longer used by anything. (mail_tool_get_folder_from_urlname): Also not used anywhere. svn path=/trunk/; revision=13273
Diffstat (limited to 'mail/mail-tools.c')
-rw-r--r--mail/mail-tools.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/mail/mail-tools.c b/mail/mail-tools.c
index 89c9fb4bfc..83b787019d 100644
--- a/mail/mail-tools.c
+++ b/mail/mail-tools.c
@@ -48,46 +48,6 @@
/* **************************************** */
-CamelFolder *
-mail_tool_get_folder_from_urlname (const gchar *url, const gchar *name,
- guint32 flags, CamelException *ex)
-{
- CamelStore *store;
- CamelFolder *folder;
-
- store = camel_session_get_store (session, url, ex);
- if (!store)
- return NULL;
-
- folder = camel_store_get_folder (store, name, flags, ex);
- camel_object_unref (CAMEL_OBJECT (store));
-
- return folder;
-}
-
-char *
-mail_tool_get_folder_name (CamelFolder *folder)
-{
- const char *name = camel_folder_get_full_name (folder);
- char *path, *pend;
-
- /* This is a kludge. */
- if (strcmp (name, "mbox") && strcmp (name, "mh") && strcmp (name, "maildir"))
- return g_strdup (name);
-
- /* For mbox/mh, return the parent store's final path component. */
- path = g_strdup (CAMEL_SERVICE (folder->parent_store)->url->path);
- pend = path + strlen (path) - 1;
- if (*pend == '/')
- *pend = '\0';
-
- pend = path;
- path = g_strdup (g_basename (path));
- g_free (pend);
-
- return path;
-}
-
gchar *
mail_tool_get_local_movemail_path (void)
{