summaryrefslogtreecommitdiffstats
path: root/pigeonhole/tests/extensions/special-use/errors/syntax.sieve
blob: cb8bc4f0ebef47aadce50269ecce15898d207597 (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
require "special-use";
require "fileinto";
require "encoded-character";

# 1
if specialuse_exists {}
# 2
if specialuse_exists 3423 {}
# 3
if specialuse_exists :frop {}
# 4
if specialuse_exists 24234 "\\Sent" {}
# 5
if specialuse_exists "frop" 32234 {}
# 6
if specialuse_exists "frop" :friep {}

# 7
if specialuse_exists "frop" {}
# 8
if specialuse_exists "frop" ["frop"] {}

# W:1
if specialuse_exists "${hex:ff}rop" "\\Sent" {}

# 9
fileinto :specialuse "\\frop";
# 10
fileinto :specialuse 343 "\\frop";
# 11
fileinto :specialuse :create "\\frop";
# 12
fileinto :specialuse "\\frop" 234234;

# 13
fileinto :specialuse "frop" "frop";
# 14
fileinto :specialuse "\\Sent" "${hex:ff}rop";