Properly add the leaf name to the directory path for the Inbox folder.

git-svn-id: svn://10.0.0.236/trunk@26002 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mscott%netscape.com
1999-04-02 02:56:57 +00:00
parent 46543a2792
commit beb9ea4994

View File

@@ -118,11 +118,12 @@ nsPop3Sink::SetMailAccountURL(const char* urlString)
nsresult
nsPop3Sink::BeginMailDelivery(PRBool* aBool)
{
char *path = PR_smprintf("%s\\Inbox", m_mailDirectory);
#ifdef DEBUG
m_fileCounter++;
#endif
nsFileSpec fileSpec(path);
nsFileSpec fileSpec(m_mailDirectory);
fileSpec += "Inbox";
printf("\nDirectory: %s\n", (const char *) fileSpec);
m_outFileStream = new nsOutputFileStream(fileSpec,
PR_WRONLY | PR_CREATE_FILE | PR_APPEND);
@@ -132,7 +133,6 @@ nsPop3Sink::BeginMailDelivery(PRBool* aBool)
return NS_ERROR_OUT_OF_MEMORY;
nsresult rv = m_newMailParser->Init(nsnull, fileSpec);
if (NS_FAILED(rv)) return rv;
PR_FREEIF(path);
#ifdef DEBUG
printf("Begin mail message delivery.\n");