summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-05-16 07:29:55 +0200
committerMontel Laurent <[email protected]>2017-05-16 07:29:55 +0200
commit219e5cd8c2bc485172e182278a74ce7118b688ee (patch)
tree8718aeaf772f6ce041deac54db4da57060f50518
parentbd400d1f7da17e1d22bd8f67423bfa01fb5666fd (diff)
Fix add header
-rw-r--r--src/ksieveui/autocreatescripts/autotests/data/add-header-ref.siv4
-rw-r--r--src/ksieveui/autocreatescripts/autotests/data/add-header.siv1
-rw-r--r--src/ksieveui/autocreatescripts/autotests/sieveeditorgraphicalmodewidgettest.cpp1
3 files changed, 6 insertions, 0 deletions
diff --git a/src/ksieveui/autocreatescripts/autotests/data/add-header-ref.siv b/src/ksieveui/autocreatescripts/autotests/data/add-header-ref.siv
new file mode 100644
index 0000000..520d0cc
--- /dev/null
+++ b/src/ksieveui/autocreatescripts/autotests/data/add-header-ref.siv
@@ -0,0 +1,4 @@
+require "editheader";
+
+#SCRIPTNAME: Script part 0
+addheader "X-Sieve-Filtered" "[email protected]";
diff --git a/src/ksieveui/autocreatescripts/autotests/data/add-header.siv b/src/ksieveui/autocreatescripts/autotests/data/add-header.siv
new file mode 100644
index 0000000..4667db4
--- /dev/null
+++ b/src/ksieveui/autocreatescripts/autotests/data/add-header.siv
@@ -0,0 +1 @@
+addheader "X-Sieve-Filtered" "[email protected]";
diff --git a/src/ksieveui/autocreatescripts/autotests/sieveeditorgraphicalmodewidgettest.cpp b/src/ksieveui/autocreatescripts/autotests/sieveeditorgraphicalmodewidgettest.cpp
index ca2b79f..b0caae2 100644
--- a/src/ksieveui/autocreatescripts/autotests/sieveeditorgraphicalmodewidgettest.cpp
+++ b/src/ksieveui/autocreatescripts/autotests/sieveeditorgraphicalmodewidgettest.cpp
@@ -160,6 +160,7 @@ void SieveEditorGraphicalModeWidgetTest::shouldLoadScripts_data()
QTest::newRow("test-comment") << QStringLiteral("test-comment") << false << true;
QTest::newRow("hasflag") << QStringLiteral("hasflag") << false << true;
QTest::newRow("setflag") << QStringLiteral("setflag") << false << true;
+ QTest::newRow("add-header") << QStringLiteral("add-header") << false << true;
}
QTEST_MAIN(SieveEditorGraphicalModeWidgetTest)