~ubuntu-branches/ubuntu/quantal/dovecot/quantal

« back to all changes in this revision

Viewing changes to sieve/src/lib-sieve/sieve-result.h

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-06-29 09:21:32 UTC
  • mfrom: (4.1.14 sid)
  • Revision ID: james.westby@ubuntu.com-20100629092132-q4pr5lfuvmjqou19
Tags: 1:1.2.12-1ubuntu1
* Merge from Debian Unstable, remaining changes:
  + Add mail-stack-delivery as per server-maverick-mail-integration spec:
   - Update debian/rules
   - Convert existing package to a dummy package and add new binary in debian/control
   - Update maintainer scripts.
   - Move previously installed backups and config files to new package name
     space in preinst
   - Add new debian/mail-stack-delivery.prerm to handle downgrades
   - Rename debian/dovecot-postfix.* to debian/mail-stack-delivery.*
  + Use Snakeoil SSL certificates by default.
    - debian/control: Depend on ssl-cert.
    - debian/patches/ssl-cert-snakeoil.dpatch: Change default SSL cert paths to snakeoil.
    - debian/dovecot-common.postinst: Relax grep for SSL_* a bit.
  + Add autopkgtest to debian/tests/*.
  + Add ufw integration:
    - Created debian/dovecot-common.ufw.profile.
    - debian/rules: install profile.
    - debian/control: suggest ufw.
  + debian/{control,rules}: enable PIE hardening.
  + debian/control: Update Vcs-* headers.
  + Add SMTP-AUTH support for Outlook (login auth mechanism) 
  + debian/dovecot-common.dirs: Added usr/share/doc/dovecot-common
  + debian/patches/fix-dovecot-config-parser.patch: Fix ordering of external config 
    files. (LP: #597818)

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
/*
11
11
 * Types
12
12
 */
13
 
 
 
13
 
14
14
struct sieve_side_effects_list;
15
15
 
16
16
/*
20
20
struct sieve_result;
21
21
 
22
22
struct sieve_result *sieve_result_create
23
 
        (struct sieve_instance *svinst, const struct sieve_message_data *msgdata, 
 
23
        (struct sieve_instance *svinst, const struct sieve_message_data *msgdata,
24
24
                const struct sieve_script_env *senv,
25
25
                struct sieve_error_handler *ehandler);
26
26
 
27
 
void sieve_result_ref(struct sieve_result *result); 
 
27
void sieve_result_ref(struct sieve_result *result);
28
28
 
29
 
void sieve_result_unref(struct sieve_result **result); 
 
29
void sieve_result_unref(struct sieve_result **result);
30
30
 
31
31
pool_t sieve_result_pool(struct sieve_result *result);
32
32
 
54
54
        (struct sieve_result *result, const struct sieve_extension *ext,
55
55
                void *context);
56
56
const void *sieve_result_extension_get_context
57
 
        (struct sieve_result *result, const struct sieve_extension *ext); 
 
57
        (struct sieve_result *result, const struct sieve_extension *ext);
58
58
 
59
 
/* 
60
 
 * Result printing 
 
59
/*
 
60
 * Result printing
61
61
 */
62
62
 
63
63
struct sieve_result_print_env {
79
79
                ATTR_FORMAT(2, 3);
80
80
 
81
81
bool sieve_result_print
82
 
        (struct sieve_result *result, const struct sieve_script_env *senv, 
 
82
        (struct sieve_result *result, const struct sieve_script_env *senv,
83
83
                struct ostream *stream, bool *keep);
84
84
 
85
 
/* 
86
 
 * Error handling 
 
85
/*
 
86
 * Error handling
87
87
 */
88
88
 
89
89
void sieve_result_error
99
99
/*
100
100
 * Result composition
101
101
 */
102
 
 
 
102
 
103
103
void sieve_result_add_implicit_side_effect
104
104
(struct sieve_result *result, const struct sieve_action_def *to_action,
105
 
        bool to_keep, const struct sieve_extension *ext, 
 
105
        bool to_keep, const struct sieve_extension *ext,
106
106
        const struct sieve_side_effect_def *seffect, void *context);
107
 
        
 
107
 
108
108
int sieve_result_add_action
109
109
        (const struct sieve_runtime_env *renv, const struct sieve_extension *ext,
110
110
                const struct sieve_action_def *act_def,
111
 
                struct sieve_side_effects_list *seffects, unsigned int source_line, 
 
111
                struct sieve_side_effects_list *seffects, unsigned int source_line,
112
112
                void *context, unsigned int instance_limit);
113
113
int sieve_result_add_keep
114
 
        (const struct sieve_runtime_env *renv, 
 
114
        (const struct sieve_runtime_env *renv,
115
115
                struct sieve_side_effects_list *seffects, unsigned int source_line);
116
116
 
117
117
void sieve_result_set_keep_action
124
124
/*
125
125
 * Result execution
126
126
 */
127
 
 
 
127
 
128
128
bool sieve_result_implicit_keep(struct sieve_result *result);
129
129
 
130
130
void sieve_result_mark_executed(struct sieve_result *result);
143
143
        (struct sieve_result_iterate_context *rictx, bool *keep);
144
144
void sieve_result_iterate_delete
145
145
        (struct sieve_result_iterate_context *rictx);
146
 
        
 
146
 
147
147
/*
148
148
 * Side effects list
149
149
 */
150
 
 
 
150
 
151
151
struct sieve_side_effects_list *sieve_side_effects_list_create
152
152
        (struct sieve_result *result);
153
153
void sieve_side_effects_list_add
154
 
        (struct sieve_side_effects_list *list, 
 
154
        (struct sieve_side_effects_list *list,
155
155
                const struct sieve_side_effect *seffect);
156
156
 
157
157
#endif