diff options
-rw-r--r-- | framework/src/domain/mime/mailtemplates.cpp | 3 | ||||
-rw-r--r-- | framework/src/domain/mime/tests/mailtemplatetest.cpp | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/framework/src/domain/mime/mailtemplates.cpp b/framework/src/domain/mime/mailtemplates.cpp index f672692b..dc4f93b5 100644 --- a/framework/src/domain/mime/mailtemplates.cpp +++ b/framework/src/domain/mime/mailtemplates.cpp | |||
@@ -102,7 +102,8 @@ QString replacePrefixes(const QString &str, const QStringList &prefixRegExps, co | |||
102 | if (rx.indexIn(tmp) == 0) { | 102 | if (rx.indexIn(tmp) == 0) { |
103 | return tmp.replace(0, rx.matchedLength(), newPrefix + QLatin1String(" ")); | 103 | return tmp.replace(0, rx.matchedLength(), newPrefix + QLatin1String(" ")); |
104 | } | 104 | } |
105 | return str; | 105 | //No match, we just prefix the newPrefix |
106 | return newPrefix + " " + str; | ||
106 | } | 107 | } |
107 | 108 | ||
108 | const QStringList getForwardPrefixes() | 109 | const QStringList getForwardPrefixes() |
diff --git a/framework/src/domain/mime/tests/mailtemplatetest.cpp b/framework/src/domain/mime/tests/mailtemplatetest.cpp index 1fff4c78..700ae7a3 100644 --- a/framework/src/domain/mime/tests/mailtemplatetest.cpp +++ b/framework/src/domain/mime/tests/mailtemplatetest.cpp | |||
@@ -113,6 +113,7 @@ private slots: | |||
113 | QTRY_VERIFY(result); | 113 | QTRY_VERIFY(result); |
114 | QCOMPARE(normalize(removeFirstLine(result->body())), normalize(msg->body())); | 114 | QCOMPARE(normalize(removeFirstLine(result->body())), normalize(msg->body())); |
115 | QCOMPARE(result->to()->addresses(), {{"konqi@example.org"}}); | 115 | QCOMPARE(result->to()->addresses(), {{"konqi@example.org"}}); |
116 | QCOMPARE(result->subject()->asUnicodeString(), {"RE: A random subject with alternative contenttype"}); | ||
116 | } | 117 | } |
117 | 118 | ||
118 | void testHtmlReply() | 119 | void testHtmlReply() |