aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-08-11 23:51:57 +0800
committerDan Winship <danw@src.gnome.org>2000-08-11 23:51:57 +0800
commit562e6437b548f354f071d2430c62abc00f715270 (patch)
tree329f314bd29e8354021dc198104415d0fc87e04d /mail/mail-ops.c
parent00d16af77343a5dec07c401e4597b03e28e1daa6 (diff)
downloadgsoc2013-evolution-562e6437b548f354f071d2430c62abc00f715270.tar
gsoc2013-evolution-562e6437b548f354f071d2430c62abc00f715270.tar.gz
gsoc2013-evolution-562e6437b548f354f071d2430c62abc00f715270.tar.bz2
gsoc2013-evolution-562e6437b548f354f071d2430c62abc00f715270.tar.lz
gsoc2013-evolution-562e6437b548f354f071d2430c62abc00f715270.tar.xz
gsoc2013-evolution-562e6437b548f354f071d2430c62abc00f715270.tar.zst
gsoc2013-evolution-562e6437b548f354f071d2430c62abc00f715270.zip
Use camel_service_get_name rather than showing the URL to the user.
* mail-ops.c (describe_fetch_mail): Use camel_service_get_name rather than showing the URL to the user. svn path=/trunk/; revision=4737
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 066ac09b60..851ba8e816 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -60,13 +60,20 @@ static gchar *
describe_fetch_mail (gpointer in_data, gboolean gerund)
{
fetch_mail_input_t *input = (fetch_mail_input_t *) in_data;
+ CamelStore *source;
+ char *name;
+
+ source = camel_session_get_store (session, input->source_url, NULL);
+ if (source) {
+ name = camel_service_get_name (CAMEL_SERVICE (source), FALSE);
+ camel_object_unref (CAMEL_OBJECT (source));
+ } else
+ name = input->source_url;
if (gerund)
- return g_strdup_printf ("Fetching email from %s",
- input->source_url);
+ return g_strdup_printf ("Fetching email from %s", name);
else
- return g_strdup_printf ("Fetch email from %s",
- input->source_url);
+ return g_strdup_printf ("Fetch email from %s", name);
}
static void