Commit 505f6c23 authored by Jeffrey Stedfast's avatar Jeffrey Stedfast Committed by Jeffrey Stedfast

Add the port (if user defined) to the path to fix bug #1996.

2001-03-27  Jeffrey Stedfast  <fejj@ximian.com>

	* 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
parent 7b128390
2001-03-27 Jeffrey Stedfast <fejj@ximian.com>
* 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.
2001-03-27 Jeffrey Stedfast <fejj@ximian.com>
* providers/pop3/camel-pop3-folder.c (pop3_sync): If we aren't
......
......@@ -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",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment