1
/* Copyright (c) 2002-2009 Dovecot Sieve authors, see the included COPYING file
4
#ifndef __SIEVE_STORAGE_PRIVATE_H
5
#define __SIEVE_STORAGE_PRIVATE_H
8
#include "sieve-error-private.h"
10
#include "sieve-storage.h"
13
enum sieve_storage_flags {
14
/* Print debugging information while initializing the storage */
15
SIEVE_STORAGE_FLAG_DEBUG = 0x01,
16
/* Use CRLF linefeeds when saving mails. */
17
SIEVE_STORAGE_FLAG_SAVE_CRLF = 0x02,
20
#define SIEVE_READ_BLOCK_SIZE (1024*8)
24
struct sieve_storage_ehandler {
25
struct sieve_error_handler handler;
26
struct sieve_storage *storage;
29
/* All methods returning int return either TRUE or FALSE. */
30
struct sieve_storage {
40
char *user; /* name of user accessing the storage */
42
struct sieve_error_handler *ehandler;
44
enum sieve_storage_flags flags;
47
struct sieve_script *sieve_storage_script_init_from_path
48
(struct sieve_storage *storage, const char *path, bool *exists_r);