summaryrefslogtreecommitdiffstats
path: root/pigeonhole/tests/compile/errors/fileinto.sieve
blob: 0598557dc6b9f2167d0e12876a7949d1517b1a20 (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 "fileinto";
require "encoded-character";

/*
 * Fileinto errors
 *
 * Total erors: 9 (+1 = 10)
 */

# Missing string argument
fileinto;

# Spurious test
fileinto true;

# Spurious test
fileinto "Frop" true;

# Spurious number argument
fileinto 33;

# Spurious tag argument
fileinto :frop;

# Spurious additional string argument
fileinto "Frop" "Friep";

# Spurious additional number argument
fileinto "Frop" 123;

# Spurious additional tag argument
fileinto "Frop" :frop;

# Bad mailbox name
fileinto "${hex:ff}rop";

# Not an error
fileinto "Frop";