Warning, /pim/libksieve/src/ksieveui/autocreatescripts/tests/scripts/address-with-default-all-parameter.siv is written in an unsupported language. File is not indexed.
0001 # Sieve filter 0002 0003 # Declare the extensions used by this script. 0004 # 0005 require ["fileinto", "reject"]; 0006 0007 # Messages bigger than 100K will be rejected with an error message 0008 # 0009 if size :over 100K { 0010 reject "I'm sorry, I do not accept mail over 100kb in size. 0011 Please upload larger files to a server and send me a link. 0012 Thanks."; 0013 } 0014 0015 # Mails from a mailing list will be put into the folder "mailinglist" 0016 # 0017 elsif address :is ["From", "To"] "mailinglist@blafasel.invalid" { 0018 fileinto "INBOX.mailinglist"; 0019 } 0020 0021 # Spam Rule: Message does not contain my address in To, CC or Bcc 0022 # header, or subject is something with "money" or "Viagra". 0023 # 0024 elsif anyof (not address :all :contains ["To", "Cc", "Bcc"] "me@blafasel.invalid", 0025 header :matches "Subject" ["*money*","*Viagra*"]) { 0026 fileinto "INBOX.spam"; 0027 } 0028 0029 # Keep the rest. 0030 # This is not necessary because there is a "implicit keep" Rule 0031 # 0032 else { 0033 keep; 0034 }