Commit b6c28713 authored by David Faure's avatar David Faure
Browse files

Adapt to KMime parseAtom() API change

parent 4dd16e9d
Pipeline #35909 passed with stage
in 12 minutes and 45 seconds
......@@ -871,7 +871,7 @@ using namespace KMime::HeaderParsing;
bool parseUserName( const char* & scursor, const char * const send,
QString & result, bool isCRLF ) {
QString tmp;
QByteArray atom;
if ( scursor != send ) {
// first, eat any whitespace
......@@ -886,10 +886,11 @@ bool parseUserName( const char* & scursor, const char * const send,
default: // atom
scursor--; // re-set scursor to point to ch again
tmp.clear();
if ( parseAtom( scursor, send, result, false /* no 8bit */ ) ) {
if (getpwnam(result.toLocal8Bit().constData()))
if ( parseAtom( scursor, send, atom, false /* no 8bit */ ) ) {
if (getpwnam(atom.constData())) {
result = QLatin1String(atom);
return true;
}
}
return false; // parseAtom can only fail if the first char is non-atext.
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment