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

Add a new line at the end of script

parent 3e8f8dc2
......@@ -6,4 +6,4 @@ require "imap4flags";
if size :under 1
{
addflag [ "\\Deleted", "\\Answered", "\\Flagged" ];
}
\ No newline at end of file
}
......@@ -7,4 +7,4 @@ require "imap4flags";
if ihave "reject"
{
addflag [ "\\Seen" ];
}
\ No newline at end of file
}
......@@ -29,4 +29,4 @@ Thanks.
fileinto "INBOX.spam";
} else {
keep;
}
\ No newline at end of file
}
......@@ -6,4 +6,4 @@ if address :detail :is "to" "shopping"
{
fileinto "shoppingMania";
stop;
}
\ No newline at end of file
}
......@@ -12,4 +12,4 @@ if allof (exists "X-Gerrit-Commit"
setflag [ "\\Seen" ];
fileinto "INBOX/Trash";
stop;
}
\ No newline at end of file
}
......@@ -7,4 +7,4 @@ if true
{
break :name "optional name";
break;
}
\ No newline at end of file
}
......@@ -11,4 +11,4 @@ if anyof (not address :all :regex [ "to", "cc", "bcc" ] "me(\\\\+.*)?@company\\\
)
{
discard;
}
\ No newline at end of file
}
......@@ -6,4 +6,4 @@ require "convert";
if true
{
convert "image/png" "image/bmp" ["pix-x=250","pix-y=600"];
}
\ No newline at end of file
}
......@@ -8,4 +8,4 @@ if true
deleteheader :matches "header-str" "header-value";
deleteheader not :is "header-str" "header-value";
deleteheader not :matches "" "";
}
\ No newline at end of file
}
......@@ -11,4 +11,4 @@ if ihave "enclosz"
.
;
}
\ No newline at end of file
}
......@@ -6,4 +6,4 @@ require "extracttext";
if true
{
extracttext :first 11 "voiture";
}
\ No newline at end of file
}
## 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;
}
......@@ -8,4 +8,4 @@ require "mailbox";
if header :is "Content-Type" "png"
{
fileinto :copy :create "INBOX";
}
\ No newline at end of file
}
......@@ -6,4 +6,4 @@ if date :is "" "year" "0000"
{
keep :flags [ "\\Flagged", "\\Seen" ];
keep;
}
\ No newline at end of file
}
......@@ -7,4 +7,4 @@ require "include";
if mailboxexists "INBOX2"
{
return;
}
\ No newline at end of file
}
......@@ -8,4 +8,4 @@ require "foreverypart";
if not envelope :localpart :is "Reply-To" "montel@kde.org"
{
break;
}
\ No newline at end of file
}
......@@ -9,4 +9,4 @@ if allof (not header :is "Content-Type" "sdfsdf"
)
{
break;
}
\ No newline at end of file
}
......@@ -7,4 +7,4 @@ require "enotify";
if convert "image/jpeg" "image/jpeg" ["pix-x=300","pix-y=200"]
{
notify :importance "2" :message "message !!!" "";
}
\ No newline at end of file
}
......@@ -7,4 +7,4 @@ require "copy";
if ihave "redirect"
{
redirect :copy "montel@kde.org";
}
\ No newline at end of file
}
......@@ -12,4 +12,4 @@ thanks
.
;
}
\ No newline at end of file
}
......@@ -8,4 +8,4 @@ if ihave "reject"
{
removeflag [ "\\Answered", "\\Flagged", "\\Seen" ];
removeflag [ "\\Draft" ];
}
\ No newline at end of file
}
......@@ -10,4 +10,4 @@ if true
.
;
}
\ No newline at end of file
}
......@@ -7,4 +7,4 @@ 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}" ];
}
\ No newline at end of file
}
......@@ -5,4 +5,4 @@ require "imap4flags";
if address :all :is "From" "someone@example.org"
{
setflag [ "\\Seen" ];
}
\ No newline at end of file
}
......@@ -5,4 +5,4 @@ require "variables";
if address :detail :matches "to" "*"
{
set "extension_name" "${1}";
}
\ No newline at end of file
}
......@@ -8,4 +8,4 @@ if envelope :all :contains [ "from", "to" ] "pedophile@yourdomain.com"
{
fileinto "c:\\spyfolder";
keep;
}
\ No newline at end of file
}
......@@ -11,4 +11,4 @@ if header :is ""
#FileInto comment
#comment2
fileinto "";
}
\ No newline at end of file
}
......@@ -12,4 +12,4 @@ if header :is ""
#comment2
fileinto "";
}
\ No newline at end of file
}
......@@ -12,4 +12,4 @@ if header :is "" #test header
#comment2
fileinto "";
}
\ No newline at end of file
}
......@@ -19,4 +19,4 @@ if allof (virustest :value "gt" :comparator "i;octet" "0" #condition1
, environment "" "" # condition6
)
{
}
\ No newline at end of file
}
......@@ -22,4 +22,4 @@ if allof (virustest :value "gt" :comparator "i;octet" "0" #condition1
)
{
}
\ No newline at end of file
}
......@@ -4,4 +4,4 @@ if header :is "X-Spam-Flag" "YES" #1
#3
{
stop;
}
\ No newline at end of file
}
......@@ -3,7 +3,8 @@ if false # allof(not header :contains "X-Spam-Flag" "YES")
{
}
#SCRIPTNAME: Script part 1
if true # allof(not header :contains "X-Spam-Flag" "YES")
{
}
\ No newline at end of file
}
......@@ -11,4 +11,4 @@ if allof (date :is "header" "day" "20"
)
{
keep;
}
\ No newline at end of file
}
......@@ -10,4 +10,4 @@ if allof (envelope :user :is "to" "foo@example.com"
)
{
stop;
}
\ No newline at end of file
}
......@@ -6,4 +6,4 @@ if envelope :all :matches "from" "*jim-???@*"
{
discard;
stop;
}
\ No newline at end of file
}
......@@ -7,4 +7,4 @@ require "imap4flags";
if environment "PATH" "local folder"
{
keep;
}
\ No newline at end of file
}
......@@ -6,4 +6,4 @@ if allof (exists "Date"
)
{
stop;
}
\ No newline at end of file
}
......@@ -10,4 +10,4 @@ if allof (hasflag :is "test"
)
{
keep;
}
\ No newline at end of file
}
......@@ -10,4 +10,4 @@ if anyof (header :contains "Subject" "[kdepim-runtime]"
)
{
fileinto "bb";
}
\ No newline at end of file
}
......@@ -9,4 +9,4 @@ if allof (header :contains "Content-Type" "value"
)
{
keep;
}
\ No newline at end of file
}
......@@ -6,4 +6,4 @@ require "mboxmetadata";
if metadataexists "INBOX" "ANNOTATION"
{
stop;
}
\ No newline at end of file
}
......@@ -7,4 +7,4 @@ if header :regex "subject" ".* \\| Nouveau ticket - .*"
{
fileinto :create "GLPI/Nouveaux tickets";
stop;
}
\ No newline at end of file
}
......@@ -7,4 +7,4 @@ require "imap4flags";
if servermetadataexists "ANNOTATION"
{
keep;
}
\ No newline at end of file
}
......@@ -12,4 +12,4 @@ if allof (spamtest :percent :value "ne" :comparator "i;ascii-numeric" "4"
)
{
stop;
}
\ No newline at end of file
}
......@@ -12,4 +12,4 @@ if allof (spamtest :count "lt" :comparator "i;ascii-numeric" "5"
)
{
stop;
}
\ No newline at end of file
}
......@@ -10,4 +10,4 @@ if anyof (header :contains "Subject" "[kdepim-runtime]"
)
{
fileinto "bb";
}
\ No newline at end of file
}
......@@ -11,4 +11,4 @@ if allof (virustest :count "ge" :comparator "i;ascii-numeric" "5"
)
{
stop;
}
\ No newline at end of file
}
......@@ -13,4 +13,4 @@ dsfgsdfgsdfg
;
discard;
}
\ No newline at end of file
}
......@@ -16,4 +16,4 @@ if true
.
;
}
\ No newline at end of file
}
......@@ -6,4 +6,4 @@ require "variables";
if true
{
set :lowerfirst "25" "variable-lower";
}
\ No newline at end of file
}
......@@ -6,4 +6,4 @@ require "variables";
if size :under 5
{
set "testvariable" "25";
}
\ No newline at end of file
}
......@@ -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