Warning, /pim/libksieve/src/ksievecore/scriptsparsing/autotests/data/regexp.siv is written in an unsupported language. File is not indexed.
0001 require "regex"; 0002 0003 # Try to catch unsolicited email. 0004 if anyof ( 0005 # if a message is not to me (with optional +detail), 0006 not address :regex ["to", "cc", "bcc"] 0007 "me(\\\\+.*)?@company\\\\.com", 0008 0009 # or the subject is all uppercase (no lowercase) 0010 header :regex :comparator "i;octet" "subject" 0011 "^[^[:lower:]]+$" ) { 0012 0013 discard; # junk it 0014 }