Don't encode the e-mail address in a way the server can't read it, when the

space is missing after the next comma.

svn path=/trunk/kdenetwork/kmail/; revision=104717
wilder-work
Michael Haeckel 25 years ago
parent 609666b14e
commit 6dcf0406bd
  1. 4
      kmmsgbase.cpp

@ -293,7 +293,7 @@ QString KMMsgBase::decodeRFC2047String(const QCString& aStr)
//-----------------------------------------------------------------------------
const QString especials = "()<>@,;:\"/[]?.= \033";
const QString dontQuote = "\"()<>";
const QString dontQuote = "\"()<>,";
QCString KMMsgBase::encodeRFC2047Quoted(const QCString& aStr, bool base64)
{
@ -348,7 +348,7 @@ QCString KMMsgBase::encodeRFC2047String(const QString& _str,
start = pos; p = pos;
while (p < _str.length())
{
if (_str.at(p) == ' ') start = p + 1;
if (_str.at(p) == ' ' || dontQuote.find(_str.at(p)) != -1) start = p + 1;
if (_str.at(p).unicode() >= 128 || _str.at(p) < ' ') break;
p++;
}

Loading…
Cancel
Save