Commit 24e084db authored by Laurent Montel's avatar Laurent Montel 😁

fix convert QByteArray->QString

parent 5583f288
......@@ -118,13 +118,13 @@ bool SearchRuleString::matches(const Akonadi::Item &item) const
bool logContents = true;
if (qstricmp(field().constData(), "<message>") == 0) {
msgContents = msg->encodedContent();
msgContents = QString::fromUtf8(msg->encodedContent());
logContents = false;
} else if (qstricmp(field().constData(), "<body>") == 0) {
msgContents = msg->body();
msgContents = QString::fromUtf8(msg->body());
logContents = false;
} else if (qstricmp(field().constData(), "<any header>") == 0) {
msgContents = msg->head();
msgContents = QString::fromUtf8(msg->head());
logContents = false;
} else if (qstricmp(field().constData(), "<recipients>") == 0) {
// (mmutz 2001-11-05) hack to fix "<recipients> !contains foo" to
......
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