mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-29 12:18:01 +01:00
fixed GH#155: MailOutputStream mangles consecutive newline sequences
This commit is contained in:
@@ -176,7 +176,9 @@ int MailStreamBuf::writeToDevice(char c)
|
|||||||
}
|
}
|
||||||
else if (_state == ST_CR_LF_DOT)
|
else if (_state == ST_CR_LF_DOT)
|
||||||
{
|
{
|
||||||
_pOstr->write("\r\n..", 4);
|
// buffer contains one or more CR-LF pairs
|
||||||
|
_pOstr->write(_buffer.data(), (std::streamsize) _buffer.length());
|
||||||
|
_pOstr->write("..", 2);
|
||||||
_state = ST_DATA;
|
_state = ST_DATA;
|
||||||
_buffer.clear();
|
_buffer.clear();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user