summaryrefslogtreecommitdiff
path: root/plugins/managesieve/tests/parser_imapflags.phpt
blob: a4bc465a3c263369f53643afc3ae3ada40751b59 (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
--TEST--
Test of Sieve vacation extension (RFC5232)
--SKIPIF--
--FILE--
<?php
include '../lib/rcube_sieve_script.php';

$txt = '
require ["imapflags"];
# rule:[imapflags]
if header :matches "Subject" "^Test$" {
    setflag "\\\\Seen";
    addflag ["\\\\Answered","\\\\Deleted"];
}
';

$s = new rcube_sieve_script($txt, array('imapflags'));
echo $s->as_text();

?>
--EXPECT--
require ["imapflags"];
# rule:[imapflags]
if header :matches "Subject" "^Test$"
{
	setflag "\\Seen";
	addflag ["\\Answered","\\Deleted"];
}