fix 210800 problem parsing imap headers/messages with mal-formatted line terminators (CRCRLF) on windows r/sr=sspitzer

git-svn-id: svn://10.0.0.236/trunk@144395 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bienvenu%netscape.com
2003-07-02 21:03:30 +00:00
parent 533a79b924
commit 93b5f59ae9

View File

@@ -3292,6 +3292,14 @@ void nsImapProtocol::HandleMessageDownLoadLine(const char *line, PRBool chunkEnd
endOfLine[2] = '\0';
}
}
else if ((endOfLine - localMessageLine) >=3 && endOfLine[-3] == nsCRT::CR && endOfLine[-2] == nsCRT::CR
&& endOfLine[-1] == nsCRT::LF)
{
// CRCRLF -> CRLF
endOfLine[-2] = nsCRT::LF;
endOfLine[-1] = '\0';
}
}
}