You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
515 B
PHP
29 lines
515 B
PHP
--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"];
|
|
}
|