diff options
author | Dan Winship <danw@src.gnome.org> | 2000-08-11 23:51:57 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-08-11 23:51:57 +0800 |
commit | 562e6437b548f354f071d2430c62abc00f715270 (patch) | |
tree | 329f314bd29e8354021dc198104415d0fc87e04d | |
parent | 00d16af77343a5dec07c401e4597b03e28e1daa6 (diff) | |
download | gsoc2013-evolution-562e6437b548f354f071d2430c62abc00f715270.tar.gz 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
-rw-r--r-- | mail/ChangeLog | 5 | ||||
-rw-r--r-- | mail/mail-ops.c | 15 |
2 files changed, 16 insertions, 4 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 465a34f62a..385e627545 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2000-08-11 Dan Winship <danw@helixcode.com> + + * mail-ops.c (describe_fetch_mail): Use camel_service_get_name + rather than showing the URL to the user. + 2000-08-11 Peter Williams <peterw@helixcode.com> * mail-threads.c (get_password_clicked): Fix the case when the 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 |