|
Last change
on this file since 5441 was
5441,
checked in by alec, 19 months ago
|
- Added 'address' and 'envelope' tests support
- Added 'body' extension support (RFC5173)
- Added 'subaddress' extension support (RFC5233)
- Added comparators support
- Changed Sender/Recipient? labels to From/To?
- Fixed importing rule names from Ingo
- Fixed handling of extensions disabled in config
|
|
File size:
435 bytes
|
| Line | |
|---|
| 1 | --TEST-- |
|---|
| 2 | Test of Sieve include extension |
|---|
| 3 | --SKIPIF-- |
|---|
| 4 | --FILE-- |
|---|
| 5 | <?php |
|---|
| 6 | include '../lib/rcube_sieve_script.php'; |
|---|
| 7 | |
|---|
| 8 | $txt = ' |
|---|
| 9 | require ["include"]; |
|---|
| 10 | |
|---|
| 11 | include "script.sieve"; |
|---|
| 12 | # rule:[two] |
|---|
| 13 | if true |
|---|
| 14 | { |
|---|
| 15 | include :optional "second.sieve"; |
|---|
| 16 | } |
|---|
| 17 | '; |
|---|
| 18 | |
|---|
| 19 | $s = new rcube_sieve_script($txt, array(), array('variables')); |
|---|
| 20 | echo $s->as_text(); |
|---|
| 21 | |
|---|
| 22 | ?> |
|---|
| 23 | --EXPECT-- |
|---|
| 24 | require ["include"]; |
|---|
| 25 | include "script.sieve"; |
|---|
| 26 | # rule:[two] |
|---|
| 27 | if true |
|---|
| 28 | { |
|---|
| 29 | include :optional "second.sieve"; |
|---|
| 30 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.