File: size.sieve

package info (click to toggle)
dovecot 1%3A2.2.13-11
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 38,472 kB
  • sloc: ansic: 341,153; sh: 16,920; makefile: 5,385; cpp: 1,474; perl: 265; xml: 44; python: 34; pascal: 27
file content (47 lines) | stat: -rw-r--r-- 507 bytes parent folder | download | duplicates (14)
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
39
40
41
42
43
44
45
46
47
/*
 * Size test errors
 *
 * Total errors: 6 (+1 = 7)
 */

# Used as command (1)
size :under 23;

# Missing argument (2)
if size {
}

# Missing :over/:under (3)
if size 45 {
	discard;
}

# No error
if size :over 34K {
	stop;
}

# No error
if size :under 34M {
	stop;
}

# Conflicting tags (4)
if size :under :over 34 {
	keep;
}

# Duplicate tags (5)
if size :over :over 45M {
	stop;
}

# Wrong argument order (6)
if size 34M :over {
	stop;
}

# No error; but worthy of a warning
if size :under 0 {
	stop;
}