File: extracttext.sieve

package info (click to toggle)
dovecot 1%3A2.3.4.1-5%2Bdeb10u6
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 48,648 kB
  • sloc: ansic: 500,433; makefile: 7,372; sh: 5,592; cpp: 1,555; perl: 303; python: 73; xml: 44; pascal: 27
file content (42 lines) | stat: -rw-r--r-- 704 bytes parent folder | download | duplicates (9)
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
require "extracttext";
require "variables";
require "foreverypart";

# 1: Used outside foreverypart
extracttext :first 10 "data";

foreverypart {
	# 2: Missing arguments
	extracttext;
	
	# 3: Bad arguments
	extracttext 1;

	# 4: Bad arguments
	extracttext ["frop", "friep"];

	# 5: Unknown tag
	extracttext :frop "frop";

	# 6: Invalid variable name
	extracttext "${frop}";

	# Not an error
	extracttext "\n\a\m\e";

	# 7: Trying to assign match variable
	extracttext "0";

	# Not an error
	extracttext :lower "frop";

	# 8: Bad ":first" tag
	extracttext :first "frop";

	# 9: Bad ":first" tag
	extracttext :first "frop" "friep";

	# 10: Bad ":first" tag
	extracttext :first ["frop", "friep"] "frml";
}