From 505f6c235bf79453fdd500a62583ea82630eb604 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Wed, 28 Mar 2001 02:19:05 +0000 Subject: Add the port (if user defined) to the path to fix bug #1996. 2001-03-27 Jeffrey Stedfast * camel-service.c (get_path): Add the port (if user defined) to the path to fix bug #1996. Danw: I'm iffy on the "fix" so I'd like you to comment. svn path=/trunk/; revision=8986 --- camel/camel-service.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'camel/camel-service.c') diff --git a/camel/camel-service.c b/camel/camel-service.c index af9d659688..cbf0e5b681 100644 --- a/camel/camel-service.c +++ b/camel/camel-service.c @@ -342,6 +342,9 @@ get_path (CamelService *service) g_string_sprintfa (gpath, "/%s@%s", url->user ? url->user : "", url->host ? url->host : ""); + + if (url->port) + g_string_sprintfa (gpath, ":%d", url->port); } else { g_string_sprintfa (gpath, "/%s%s", url->user ? url->user : "", @@ -351,6 +354,9 @@ get_path (CamelService *service) g_string_sprintfa (gpath, "/%s%s", CAMEL_PROVIDER_NEEDS (prov, CAMEL_URL_PART_HOST) ? "" : "@", url->host ? url->host : ""); + + if (url->port) + g_string_sprintfa (gpath, ":%d", url->port); } if (CAMEL_PROVIDER_NEEDS (prov, CAMEL_URL_PART_PATH)) { g_string_sprintfa (gpath, "%s%s", -- cgit