fix 303289 cancelling full download of partially downloaded message with msg quarantining turned on can truncate folder, sr=mscott, a=bmsedberg

This commit is contained in:
bienvenu%nventure.com 2005-08-07 15:43:53 +00:00
Родитель 52a2f797f2
Коммит 61ab4cf7f3
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -900,7 +900,7 @@ nsPop3Sink::IncorporateAbort(PRBool uidlDownload)
nsresult rv;
rv = m_outFileStream->close(); //need to close so that the file can be truncated.
NS_ENSURE_SUCCESS(rv,rv);
if (m_msgOffset >= 0)
if (m_msgOffset >= 0 && !m_downloadingToTempFile)
{
nsCOMPtr<nsIMsgIncomingServer> server = do_QueryInterface(m_popServer);
NS_ASSERTION(server, "Could not get the pop server !!");