Changeset 5437 in subversion
- Timestamp:
- Nov 16, 2011 6:41:57 AM (18 months ago)
- Location:
- trunk/plugins/managesieve/tests
- Files:
-
- 3 added
- 1 edited
-
parser.phpt (modified) (6 diffs)
-
parser_imapflags.phpt (added)
-
parser_relational.phpt (added)
-
parser_vacation.phpt (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/managesieve/tests/parser.phpt
r4536 r5437 7 7 8 8 $txt = ' 9 require ["fileinto"," vacation","reject","relational","comparator-i;ascii-numeric","imapflags"];9 require ["fileinto","reject"]; 10 10 # rule:[spam] 11 11 if anyof (header :contains "X-DSPAM-Result" "Spam") … … 26 26 stop; 27 27 } 28 # rule:[test-vacation]29 if anyof (header :contains "Subject" "vacation")30 {31 vacation :days 1 text:32 # test33 test test /* test */34 test35 .36 ;37 stop;38 }39 28 # rule:[comments] 40 29 if anyof (true) /* comment … … 47 36 reject "Message over 5MB size limit. Please contact me before sending this."; 48 37 } 49 # rule:[redirect]50 if header :value "ge" :comparator "i;ascii-numeric"51 ["X-Spam-score"] ["14"] {redirect "test@test.tld";}52 # rule:[imapflags]53 if header :matches "Subject" "^Test$" {54 setflag "\\\\Seen";55 addflag ["\\\\Answered","\\\\Deleted"];56 }57 38 '; 58 39 … … 62 43 ?> 63 44 --EXPECT-- 64 require ["fileinto"," vacation","reject","relational","comparator-i;ascii-numeric","imapflags"];45 require ["fileinto","reject"]; 65 46 # rule:[spam] 66 47 if header :contains "X-DSPAM-Result" "Spam" … … 81 62 stop; 82 63 } 83 # rule:[test-vacation]84 if header :contains "Subject" "vacation"85 {86 vacation :days 1 text:87 # test88 test test /* test */89 test90 .91 ;92 stop;93 }94 64 # rule:[comments] 95 65 if true … … 102 72 reject "Message over 5MB size limit. Please contact me before sending this."; 103 73 } 104 # rule:[redirect]105 if header :value "ge" :comparator "i;ascii-numeric" "X-Spam-score" "14"106 {107 redirect "test@test.tld";108 }109 # rule:[imapflags]110 if header :matches "Subject" "^Test$"111 {112 setflag "\\Seen";113 addflag ["\\Answered","\\Deleted"];114 }
Note: See TracChangeset
for help on using the changeset viewer.
