1
/* Copyright (c) 2002-2009 Dovecot Sieve authors, see the included COPYING file
4
#ifndef __EXT_VARIABLES_LIMITS_H
5
#define __EXT_VARIABLES_LIMITS_H
7
#include "sieve-limits.h"
11
* 6. Implementation Limits
13
* An implementation of this document MUST support at least 128 distinct
14
* variables. The supported length of variable names MUST be at least
15
* 32 characters. Each variable MUST be able to hold at least 4000
16
* characters. Attempts to set the variable to a value larger than what
17
* the implementation supports SHOULD be reported as an error at
18
* compile-time if possible. If the attempt is discovered during run-
19
* time, the value SHOULD be truncated, and it MUST NOT be treated as an
22
* Match variables ${1} through ${9} MUST be supported. References to
23
* higher indices than those the implementation supports MUST be treated
24
* as a syntax error, which SHOULD be discovered at compile-time.
27
#define SIEVE_VARIABLES_MAX_SCOPE_SIZE 255
28
#define SIEVE_VARIABLES_MAX_VARIABLE_NAME_LEN 64
29
#define SIEVE_VARIABLES_MAX_VARIABLE_SIZE (4 * 1024)
30
#define SIEVE_VARIABLES_MAX_NAMESPACE_ELEMENTS 4
32
#define SIEVE_VARIABLES_MAX_MATCH_INDEX SIEVE_MAX_MATCH_VALUES
34
#endif /* __EXT_VARIABLES_LIMITS_H */