fix warning and fix bug #18036, r=bienvenu, a=chofmann.

prevent the infinite loop when applying filters to mail if a filter
rule uses an arbitrary header.
This commit is contained in:
sspitzer%netscape.com 1999-11-05 01:58:03 +00:00
parent f535f208dc
commit e297d950f4

View File

@ -161,6 +161,9 @@ PRInt32 nsMsgBodyHandler::GetNextFilterLine(char * buf, PRUint32 bufSize)
return (PRInt32) numBytesCopied;
}
}
else if (m_headersSize == 0) {
buf[0] = '\0';
}
return -1;
}
@ -169,7 +172,6 @@ PRInt32 nsMsgBodyHandler::GetNextFilterLine(char * buf, PRUint32 bufSize)
PRInt32 nsMsgBodyHandler::GetNextLocalLine(char * buf, int bufSize)
// returns number of bytes copied
{
char * line = NULL;
if (m_numLocalLines)
{
if (m_passedHeaders)