Warning, /pim/libksieve/src/ksieveui/autocreatescripts/autotests/data/address-with-default-all-parameter-ref.siv is written in an unsupported language. File is not indexed.

0001 require "reject";
0002 require "subaddress";
0003 require "fileinto";
0004 require "imap4flags";
0005 
0006 # rule:[Script part 0]
0007 # Sieve filter
0008 
0009 # Declare the extensions used by this script.
0010 
0011 # Messages bigger than 100K will be rejected with an error message
0012 
0013 if size :over 100K
0014 {
0015     reject text:
0016 I'm sorry, I do not accept mail over 100kb in size. 
0017 Please upload larger files to a server and send me a link.
0018 Thanks.
0019 .
0020 ;
0021 
0022 } elsif address :all :is [ "From", "To" ] "mailinglist@blafasel.invalid"
0023 {
0024     fileinto "INBOX.mailinglist";
0025 } elsif anyof (not address :all :contains [ "To", "Cc", "Bcc" ] "me@blafasel.invalid"
0026 , header :matches "Subject" [ "*money*", "*Viagra*" ]
0027 )
0028 {
0029     fileinto "INBOX.spam";
0030 } else {
0031     keep;
0032 }