From bd52985962ec52ed1a89a466c66fab61e5fe9134 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 29 Mar 2001 17:34:00 +0000 Subject: change "gboolean show_passwd" to "guint32 flags". * camel-url.c (camel_url_to_string): change "gboolean show_passwd" to "guint32 flags". * tests/misc/url.c (main): Update calls to camel_url_to_string * providers/imap/camel-imap-store.c (construct): Call camel_url_to_string with flags to hide password, authtype, and params to create the base_url. (etc): Update for the fact that the base_url no longer has the "/" at the end. * camel-service.c (construct): Update calls to camel_url_to_string (pass CAMEL_URL_HIDE_PASSWORD) svn path=/trunk/; revision=9014 --- camel/camel-service.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'camel/camel-service.c') diff --git a/camel/camel-service.c b/camel/camel-service.c index cbf0e5b681..b0e8c1ec59 100644 --- a/camel/camel-service.c +++ b/camel/camel-service.c @@ -134,7 +134,7 @@ construct (CamelService *service, CamelSession *session, if (CAMEL_PROVIDER_NEEDS (provider, CAMEL_URL_PART_USER) && (url->user == NULL || url->user[0] == '\0')) { - url_string = camel_url_to_string (url, FALSE); + url_string = camel_url_to_string (url, CAMEL_URL_HIDE_PASSWORD); camel_exception_setv (ex, CAMEL_EXCEPTION_SERVICE_URL_INVALID, _("URL '%s' needs a username component"), url_string); @@ -142,7 +142,7 @@ construct (CamelService *service, CamelSession *session, return; } else if (CAMEL_PROVIDER_NEEDS (provider, CAMEL_URL_PART_HOST) && (url->host == NULL || url->host[0] == '\0')) { - url_string = camel_url_to_string (url, FALSE); + url_string = camel_url_to_string (url, CAMEL_URL_HIDE_PASSWORD); camel_exception_setv (ex, CAMEL_EXCEPTION_SERVICE_URL_INVALID, _("URL '%s' needs a host component"), url_string); @@ -150,7 +150,7 @@ construct (CamelService *service, CamelSession *session, return; } else if (CAMEL_PROVIDER_NEEDS (provider, CAMEL_URL_PART_PATH) && (url->path == NULL || url->path[0] == '\0')) { - url_string = camel_url_to_string (url, FALSE); + url_string = camel_url_to_string (url, CAMEL_URL_HIDE_PASSWORD); camel_exception_setv (ex, CAMEL_EXCEPTION_SERVICE_URL_INVALID, _("URL '%s' needs a path component"), url_string); -- cgit