summaryrefslogtreecommitdiff
path: root/plugins/managesieve/tests/parser_vacation.phpt
blob: a603ff6c11d72f9a0a90ee25a1543b2fae4ced2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
--TEST--
Test of Sieve vacation extension (RFC5230)
--SKIPIF--
--FILE--
<?php
include '../lib/rcube_sieve_script.php';

$txt = '
require ["vacation"];
# rule:[test-vacation]
if anyof (header :contains "Subject" "vacation")
{
	vacation :days 1 text:
# test
test test /* test */
test
.
;
	stop;
}
';

$s = new rcube_sieve_script($txt);
echo $s->as_text();

?>
--EXPECT--
require ["vacation"];
# rule:[test-vacation]
if header :contains "Subject" "vacation"
{
	vacation :days 1 text:
# test
test test /* test */
test
.
;
	stop;
}