Commit 3cb3db5c authored by Laurent Montel's avatar Laurent Montel 😁

Add comparator autotest

parent 8853861c
require "subaddress";
require "spamtest";
require "relational";
require "spamtestplus";
#SCRIPTNAME: Script part 0
# Try to catch unsolicited email.
if anyof (not address :all :regex [ "to", "cc", "bcc" ] "me(\\\\+.*)?@company\\\\.com"
, spamtest :value "gt" :comparator "i;ascii-casemap" "0"
)
{
discard;
}
\ No newline at end of file
require "subaddress";
require "spamtest";
require "relational";
require "spamtestplus";
#SCRIPTNAME: Script part 0
# Try to catch unsolicited email.
if anyof (not address :all :regex [ "to", "cc", "bcc" ] "me(\\\\+.*)?@company\\\\.com"
, spamtest :value "gt" :comparator "i;ascii-casemap" "0"
)
{
discard;
}
......@@ -154,6 +154,7 @@ void SieveEditorGraphicalModeWidgetTest::shouldLoadScripts_data()
QTest::newRow("full-example1") << QStringLiteral("full-example1") << false << true;
//We need to fix it.
QTest::newRow("regexp") << QStringLiteral("regexp") << true << true;
QTest::newRow("comparator") << QStringLiteral("comparator") << 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