insert hostname into URI when getting ServerURI

git-svn-id: svn://10.0.0.236/trunk@29701 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
alecf%netscape.com
1999-04-28 06:05:36 +00:00
parent e28921c5ae
commit b6072d4963

View File

@@ -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;