1
/* Copyright (c) 2002-2009 Dovecot Sieve authors, see the included COPYING file
4
#ifndef __SIEVE_STORAGE_SCRIPT_H
5
#define __SIEVE_STORAGE_SCRIPT_H
7
#include "sieve-script.h"
9
#include "sieve-storage.h"
11
struct sieve_script *sieve_storage_script_init
12
(struct sieve_storage *storage, const char *scriptname, bool *exists_r);
14
const char *sieve_storage_file_get_scriptname
15
(const struct sieve_storage *storage, const char *filename);
18
sieve_storage_get_active_scriptfile(struct sieve_storage *storage);
21
sieve_storage_get_active_script(struct sieve_storage *storage, bool *no_active);
23
int sieve_storage_script_is_active(struct sieve_script *script);
25
int sieve_storage_script_delete(struct sieve_script **script);
27
int sieve_storage_deactivate(struct sieve_storage *storage);
29
int sieve_storage_script_activate(struct sieve_script *script);
31
int sieve_storage_script_rename(struct sieve_script *script, const char *newname);