Warning, /pim/libksieve/src/ksieveui/autocreatescripts/autotests/data/test-foreverypart-complex.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 #SCRIPTNAME: Script part 0 0007 # Sieve filter 0008 # Declare the extensions used by this script. 0009 # 0010 # Messages bigger than 100K will be rejected with an error message 0011 # 0012 foreverypart :name "foo" { 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 break; 0031 } else { 0032 keep; 0033 } 0034 }