Bug #14114 --> when downloading new messages, if we can't create

a mailbox parser, don't abort the download, just don't use the parser
this happens when you try to get new messages for an inbox we don't
have a mail summary file for. We can still add the new messages
to the berkley mail folder...
This commit is contained in:
mscott%netscape.com 1999-09-17 20:12:58 +00:00
Родитель 6a26e5fb42
Коммит 6cbe295674
1 изменённых файлов: 8 добавлений и 1 удалений

Просмотреть файл

@ -151,7 +151,14 @@ nsPop3Sink::BeginMailDelivery(PRBool* aBool)
if (NS_FAILED(rv)) return rv;
rv = m_newMailParser->Init(serverFolder, fileSpec, m_outFileStream);
if (NS_FAILED(rv)) return rv;
// if we failed to initialize the parser, then just don't use it!!!
// we can still continue without one...
if (NS_FAILED(rv))
{
delete m_newMailParser;
m_newMailParser = nsnull;
rv = NS_OK;
}
#ifdef DEBUG
printf("Begin mail message delivery.\n");