thomascube
2012-03-31 48e9c14ebded89d858c8be0333f77f77a81b0877
commit | author | age
48e9c1 1 --TEST--
T 2 Test of Sieve vacation extension (RFC5230)
3 --SKIPIF--
4 --FILE--
5 <?php
6 include '../lib/rcube_sieve_script.php';
7
8 $txt = '
9 require ["vacation"];
10 # rule:[test-vacation]
11 if anyof (header :contains "Subject" "vacation")
12 {
13     vacation :days 1 text:
14 # test
15 test test /* test */
16 test
17 .
18 ;
19     stop;
20 }
21 ';
22
23 $s = new rcube_sieve_script($txt);
24 echo $s->as_text();
25
26 ?>
27 --EXPECT--
28 require ["vacation"];
29 # rule:[test-vacation]
30 if header :contains "Subject" "vacation"
31 {
32     vacation :days 1 text:
33 # test
34 test test /* test */
35 test
36 .
37 ;
38     stop;
39 }