summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2015-05-10 14:44:34 +0200
committerChristian Mollekopf <mollekopf@kolabsys.com>2015-05-10 14:44:34 +0200
commit3596738c516c33ff7a4762110b94fef8f0a033a0 (patch)
treec64ac2a0f05402d53b54071cc085b1a544f55012
parent04cf7d32d38359c614b26668d5bd40a83604bb60 (diff)
downloadlibkolab-3596738c516c33ff7a4762110b94fef8f0a033a0.tar.gz
Ignore changes in where the linebreak is in quoted-printable.
-rw-r--r--tests/testutils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/testutils.h b/tests/testutils.h
index a62355f..5a6d9c4 100644
--- a/tests/testutils.h
+++ b/tests/testutils.h
@@ -111,6 +111,8 @@ void normalizeMimemessage(QString &content)
content.replace(QRegExp("Date[^\\n]*", Qt::CaseSensitive), "Date");
//The sort order of the attributes in kolabV2 is unpredictable
content.replace(QRegExp("<x-custom*/>", Qt::CaseSensitive, QRegExp::Wildcard), "<x-custom/>");
+ //quoted-printable encoding changes where the linebreaks are every now and then (an all are valid), so we remove the linebreaks
+ content.replace(QRegExp("=\\n", Qt::CaseSensitive), "");
}
QString normalizeVCardMessage(QString content)