9 #include <sieve2_error.h>
12 struct sdm_script *next;
13 char script_name[256];
19 sieve2_context_t *sieve2_context; /**< for libsieve's use */
20 long config_msgnum; /**< confirms that a sieve config was located */
21 char config_roomname[ROOMNAMELEN];
22 long lastproc; /**< last message processed */
23 struct sdm_script *first_script;
28 int actiontaken; /* Set to 1 if the message was successfully acted upon */
29 int keep; /* Set to 1 to suppress message deletion from the inbox */
30 long usernum; /* Owner of the mailbox we're processing */
31 long msgnum; /* Message base ID of the message being processed */
32 struct sdm_userdata *u; /* Info related to the current session */
36 char sender[256]; /* To whom shall we send reject bounces or vacation messages? */
40 /* If you change this string you will break all of your Sieve configs. */
41 #define CTDLSIEVECONFIGSEPARATOR "\n-=<CtdlSieveConfigSeparator>=-\n"
43 extern struct RoomProcList *sieve_list;
45 void sieve_queue_room(struct ctdlroom *);
46 void perform_sieve_processing(void);
48 void msiv_load(struct sdm_userdata *u);
49 void msiv_store(struct sdm_userdata *u);
50 int msiv_setactive(struct sdm_userdata *u, char *script_name);
51 char *msiv_getscript(struct sdm_userdata *u, char *script_name);
52 int msiv_deletescript(struct sdm_userdata *u, char *script_name);
53 void msiv_putscript(struct sdm_userdata *u, char *script_name, char *script_content);
55 #endif /* HAVE_LIBSIEVE */