Commit 7d0d482a authored by Laurent Montel's avatar Laurent Montel 😁

Add more autotest

parent 85cdde90
require "imap4flags";
require "variables";
#SCRIPTNAME: test1
if hasflag :is "foo"
{
}
\ No newline at end of file
require "imapflags";
#SCRIPTNAME: test1
if hasflag :is "foo"
{
}
if header :is "Sender" "owner-ietf-mta-filters@example.org"
{
set "MyFlags" "\\Flagged $Work";
# Message will have both "\Flagged" and $Work flags
keep :flags "${MyFlags}";
}
if header :is "Sender" "owner-ietf-mta-filters@example.org"
{
set "MyFlags" "\\Flagged $Work";
# Message will have both "\Flagged" and $Work flags
keep :flags "${MyFlags}";
}
......@@ -3,9 +3,9 @@ require "imap4flags";
#SCRIPTNAME: test-date
#Script name: test-date
if allof (date :is "header" "iso8601" "Sunday, 14 May 2017"
if allof (date :is "header" "iso8601" "Monday, 15 May 2017"
, not date :matches "header" "hour" "08"
, not date :contains "header" "julian" "Sunday, 14 May 2017"
, not date :contains "header" "julian" "Monday, 15 May 2017"
)
{
keep;
......
......@@ -156,6 +156,8 @@ void SieveEditorGraphicalModeWidgetTest::shouldLoadScripts_data()
QTest::newRow("regexp") << QStringLiteral("regexp") << true << true;
QTest::newRow("comparator") << QStringLiteral("comparator") << false << true;
QTest::newRow("test-comment") << QStringLiteral("test-comment") << false << true;
QTest::newRow("hasflag") << QStringLiteral("hasflag") << false << true;
QTest::newRow("setflag") << QStringLiteral("setflag") << false << true;
}
QTEST_MAIN(SieveEditorGraphicalModeWidgetTest)
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