QxtMailMessage: Handle lines with only one word
This commit is contained in:
parent
2381ed5717
commit
315445f127
|
@ -442,7 +442,12 @@ QByteArray QxtMailMessage::rfc2822() const
|
|||
{
|
||||
if (b[i] == '\n' || b[i] == '\r')
|
||||
{
|
||||
if (line.length() + word.length() + 1 <= 78)
|
||||
if (line.isEmpty())
|
||||
{
|
||||
line = word;
|
||||
word = "";
|
||||
}
|
||||
else if (line.length() + word.length() + 1 <= 78)
|
||||
{
|
||||
line = line + ' ' + word;
|
||||
word = "";
|
||||
|
|
Loading…
Reference in New Issue
Block a user