Commit 737e85ae authored by Laurent Montel's avatar Laurent Montel 😁

Add a new line at the end of script

parent 3e8f8dc2
## Flag: |UniqueId:2|Rulename: Mail delivery failed <bae.vo.pb+ma@gmail.com>
if allof ( header :contains "From" "mailer-daemon@foo.de" , header :matches "Subject" "Mail delivery failed: returning message to sender" , size :under 10000 , body :contains :text "<blo@dd.com>" )
require "body";
require "fileinto";
require "imap4flags";
#SCRIPTNAME: Script part 0
## Flag: |UniqueId:2|Rulename: Mail delivery failed "bae.vo.pb+ma@gmail.com"
if allof (header :contains "From" "mailer-daemon@foo.de"
, header :matches "Subject" "Mail delivery failed: returning message to sender"
, size :under 10000
, body :text :contains "<blo@dd.com>"
)
{
fileinto "folder" ;
addflag "\\seen" ;
stop ;
fileinto "folder";
addflag [ "\\seen" ];
stop;
}
......@@ -3,6 +3,7 @@ if false # allof(not header :contains "X-Spam-Flag" "YES")
{
}
#SCRIPTNAME: Script part 1
if true # allof(not header :contains "X-Spam-Flag" "YES")
{
......
......@@ -153,6 +153,8 @@ void SieveScriptPage::generatedScript(QString &script, QStringList &requires)
}
if (inForEveryPartLoop) {
script += QStringLiteral("\n}\n");
} else {
script += QLatin1Char('\n');
}
}
......
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