aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-service.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-service.c')
-rw-r--r--camel/camel-service.c6
1 files changed, 6 insertions, 0 deletions
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",