Commit dea6f56d authored by Laurent Montel's avatar Laurent Montel 😁

Add other autotests

parent bf22a145
require "date";
require "imap4flags";
#SCRIPTNAME: xxx
if date :is "" "year" "0000"
{
keep :flags [ "\\Flagged", "\\Seen" ];
keep;
}
\ No newline at end of file
require "date";
require "imapflags";
#SCRIPTNAME: xxx
if date :is "" "year" "0000"
{
keep :flags [ "\\Flagged", "\\Seen" ];
keep;
}
require "ihave";
require "reject";
#SCRIPTNAME: Script part 0
#Script name: reject
if ihave "reject"
{
reject text:
sorry rejected
thanks
.
;
}
\ No newline at end of file
require "ihave";
require "reject";
#Script name: reject
if ihave "reject"
{
reject text:
sorry rejected
thanks
.
;
}
require "imap4flags";
#SCRIPTNAME: Script part 0
#Script name: test-headers
if allof (header :contains "Content-Type" "value"
, not header :is "Date" "125"
, not header :contains "Subject" "sdfsdf"
)
{
keep;
}
\ No newline at end of file
#Script name: test-headers
if allof (header :contains "Content-Type" "value"
, not header :is "Date" "125"
, not header :contains "Subject" "sdfsdf"
)
{
keep;
}
......@@ -147,6 +147,9 @@ void SieveEditorGraphicalModeWidgetTest::shouldLoadScripts_data()
QTest::newRow("not-condition2") << QStringLiteral("not-condition2") << false << true;
QTest::newRow("address-with-default-is-parameter") << QStringLiteral("address-with-default-is-parameter") << false << true;
QTest::newRow("test-spam") << QStringLiteral("test-spam") << false << true;
QTest::newRow("reject") << QStringLiteral("reject") << false << true;
QTest::newRow("keep") << QStringLiteral("keep") << false << true;
QTest::newRow("test-headers") << QStringLiteral("test-headers") << false << true;
}
......
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