Commit 6ff0fa05 authored by Volker Krause's avatar Volker Krause
Browse files

No need to parse the already parsed email address again. Saves about 10%

on envelope deserialization.

svn path=/trunk/KDE/kdepim/runtime/; revision=1186726
parent 88632dbc
......@@ -45,7 +45,10 @@ template <typename T> static void parseAddrList( const QVarLengthArray<QByteArra
}
KMime::Types::Mailbox addrField;
addrField.setNameFrom7Bit( addr[0] );
addrField.setAddress( addr[2] + '@' + addr[3] );
KMime::Types::AddrSpec addrSpec;
addrSpec.localPart = QString::fromUtf8( addr[2] );
addrSpec.domain = QString::fromUtf8( addr[3] );
addrField.setAddress( addrSpec );
hdr->addAddress( addrField );
}
}
......
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