aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-send-recv.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 9577613c15..f736e86c4a 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2001-08-02 Larry Ewing <lewing@ximian.com>
+
+ * mail-send-recv.c (format_url): handle null paths in the dialog
+ so that we avoid printing NULL strings
+
2001-08-02 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (filter_edit): Raise the filter-editor window
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);