/usr/include/dovecot/sieve/sieve-ext-environment.h is in dovecot-dev 1:2.2.22-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 48 49 50 51 52 53 54 55 56 | /* Copyright (c) 2002-2016 Pigeonhole authors, see the included COPYING file
*/
#ifndef __SIEVE_EXT_ENVIRONMENT_H
#define __SIEVE_EXT_ENVIRONMENT_H
#include "sieve-common.h"
/*
* Environment extension
*/
/* FIXME: this is not suitable for future plugin support */
extern const struct sieve_extension_def environment_extension;
static inline const struct sieve_extension *
sieve_ext_environment_get_extension
(struct sieve_instance *svinst)
{
return sieve_extension_register
(svinst, &environment_extension, FALSE);
}
static inline const struct sieve_extension *
sieve_ext_environment_require_extension
(struct sieve_instance *svinst)
{
return sieve_extension_require
(svinst, &environment_extension, TRUE);
}
bool sieve_ext_environment_is_active
(const struct sieve_extension *env_ext,
struct sieve_interpreter *interp);
/*
* Environment item
*/
struct sieve_environment_item {
const char *name;
const char *value;
const char *(*get_value)
(const struct sieve_runtime_env *renv);
};
void sieve_environment_item_register
(const struct sieve_extension *env_ext, struct sieve_interpreter *interp,
const struct sieve_environment_item *item);
const char *ext_environment_item_get_value
(const struct sieve_extension *env_ext,
const struct sieve_runtime_env *renv, const char *name);
#endif
|