aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-send-recv.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-send-recv.c')
-rw-r--r--mail/mail-send-recv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c
index b8f507b45d..0564dd0214 100644
--- a/mail/mail-send-recv.c
+++ b/mail/mail-send-recv.c
@@ -226,8 +226,10 @@ format_url(const char *internal_url)
url = camel_url_new(internal_url, NULL);
if (url->host)
pretty_url = g_strdup_printf("Server: %s, Type: %s", url->host, url->protocol);
- else
+ else if (url->path)
pretty_url = g_strdup_printf("Path: %s, Type: %s", url->path, url->protocol);
+ else
+ pretty_url = g_strdup_printf("Type: %s", url->protocol);
camel_url_free(url);