From b6072d4963711032e35070bb2f2cc829d20ca28e Mon Sep 17 00:00:00 2001 From: "alecf%netscape.com" Date: Wed, 28 Apr 1999 06:05:36 +0000 Subject: [PATCH] insert hostname into URI when getting ServerURI git-svn-id: svn://10.0.0.236/trunk@29701 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/mailnews/local/src/nsPop3IncomingServer.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/mozilla/mailnews/local/src/nsPop3IncomingServer.cpp b/mozilla/mailnews/local/src/nsPop3IncomingServer.cpp index b9c58358991..a5020050782 100644 --- a/mozilla/mailnews/local/src/nsPop3IncomingServer.cpp +++ b/mozilla/mailnews/local/src/nsPop3IncomingServer.cpp @@ -24,7 +24,7 @@ #include "prmem.h" #include "plstr.h" - +#include "prprf.h" /* get some implementation from nsMsgIncomingServer */ class nsPop3IncomingServer : public nsMsgIncomingServer, @@ -94,10 +94,7 @@ nsPop3IncomingServer::GetServerURI(char **uri) rv = GetHostName(&hostname); if (NS_FAILED(rv)) return rv; - const char* urischema ="mailbox:/"; - - // eventually, we want this to be mailbox://hostname/ - *uri = PL_strdup(urischema); + *uri = PR_smprintf("mailbox://%s/", hostname); PR_Free(hostname); return rv;