summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2015-05-10 14:45:18 +0200
committerChristian Mollekopf <mollekopf@kolabsys.com>2015-05-10 14:45:18 +0200
commite2f8d3f1203a9bb9e65e5864150898831d971ab2 (patch)
tree74050865b345703fa028740ae0615103099c80eb
parent3596738c516c33ff7a4762110b94fef8f0a033a0 (diff)
downloadlibkolab-e2f8d3f1203a9bb9e65e5864150898831d971ab2.tar.gz
Ignore cid changes.
The cid is regenerated on every write.
-rw-r--r--tests/testutils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/testutils.h b/tests/testutils.h
index 5a6d9c4..d11ced2 100644
--- a/tests/testutils.h
+++ b/tests/testutils.h
@@ -99,6 +99,7 @@ void normalizeMimemessage(QString &content)
content.replace(QRegExp("\\bLibkolab-\\d.\\d\\b", Qt::CaseSensitive), "Libkolab-x.x.x");
content.replace(QRegExp("\\bLibkolabxml-\\d.\\d\\b", Qt::CaseSensitive), "Libkolabxml-x.x.x");
content.replace(QRegExp("<uri>cid:*@kolab.resource.akonadi</uri>", Qt::CaseSensitive, QRegExp::Wildcard), "<uri>cid:id@kolab.resource.akonadi</uri>");
+ content.replace(QRegExp("Content-ID: <*@kolab.resource.akonadi>", Qt::CaseSensitive, QRegExp::Wildcard), "Content-ID: <id@kolab.resource.akonadi>");
content.replace(QRegExp("<uri>mailto:*</uri>", Qt::CaseSensitive, QRegExp::Wildcard), "<uri>mailto:</uri>");
content.replace(QRegExp("<cal-address>mailto:*</cal-address>", Qt::CaseSensitive, QRegExp::Wildcard), "<cal-address>mailto:</cal-address>");
content.replace(QRegExp("<uri>data:*</uri>", Qt::CaseSensitive, QRegExp::Wildcard), "<uri>data:</uri>");