~ubuntu-branches/ubuntu/trusty/dovecot/trusty-proposed

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): James Page, James Page, Ante Karamatic
  • Date: 2013-02-11 12:41:24 UTC
  • mfrom: (4.1.33 sid)
  • Revision ID: package-import@ubuntu.com-20130211124124-v7bdegzftlhw7yfr
Tags: 1:2.1.7-7ubuntu1
[ James Page ]
* Merge from Debian unstable (LP: #1117613, #1075456), remaining changes:
  + Add mail-stack-delivery package:
    - Update d/rules
    - d/control: convert existing dovecot-postfix package to a dummy
      package and add new mail-stack-delivery package.
    - Update maintainer scripts.
    - Rename d/dovecot-postfix.* to debian/mail-stack-delivery.*
    - d/mail-stack-delivery.preinst: Move previously installed backups and
      config files to a new package namespace.
    - d/mail-stack-delivery.prerm: Added to handle downgrades.
  + Use Snakeoil SSL certificates by default:
    - d/control: Depend on ssl-cert.
    - d/dovecot-core.postinst: Relax grep for SSL_* a bit.
  + Add autopkgtest to debian/tests/*.
  + Add ufw integration:
    - d/dovecot-core.ufw.profile: new ufw profile.
    - d/rules: install profile in dovecot-core.
    - d/control: dovecot-core - suggest ufw.
  + d/dovecot-core.dirs: Added usr/share/doc/dovecot-core
  + Add apport hook:
    - d/rules, d/source_dovecot.py
  + Add upstart job:
    - d/rules, d/dovecot-core.dovecot.upstart, d/control,
      d/dovecot-core.dirs, dovecot-imapd.{postrm, postinst, prerm},
      d/dovecot-pop3d.{postinst, postrm, prerm}.
      d/mail-stack-deliver.postinst: Convert init script to upstart.
  + d/control: Added Pre-Depends: dpkg (>= 1.15.6) to dovecot-dbg to support
    xz compression in Ubuntu.
  + d/control: Demote dovecot-common Recommends: to Suggests: to prevent
    install of extra packages on upgrade.
  + d/patches/dovecot-drac.patch: Updated with version for dovecot >= 2.0.0.
* Dropped changes, included in Debian:
  + d/{control,rules}: enable PIE hardening.
  + d/control: Drop B-D on systemd.
* d/p/mail-stack-delivery.postinst: Updated to ensure that configured SSL
  cert and key locations are used when configuring postfix, sorted out
  formatting.
* d/p/dovecot-core.postinst: Create compat links to old style, existing
  SSL cert and key if found.
* d/rules: Don't pass hardening flags for DRAC plugin.
* d/dovecot-{pop3d,imapd}.prerm: Re-sync with Debian.
* d/dovecot-core.lintian-overrides: Drop override for DRAC plugin as not
  required in Ubuntu.
* d/01-mail-stack-delivery: Renamed 99-mail-stack-delivery to ensure that
  the mail-stack-delivery configuration overrides configuration options
  set elsewhere, updated with new cert/key file locations.

[ Ante Karamatic ]
* Change configuration file for LDA on new installs and upgrades
  (LP: #671065).

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 *   is used.
21
21
 */
22
22
struct sieve_instance *sieve_init
23
 
        (const struct sieve_environment *env, void *context, bool debug);
 
23
        (const struct sieve_environment *env, const struct sieve_callbacks *callbacks,
 
24
                void *context, bool debug);
24
25
 
25
26
/* sieve_deinit():
26
27
 *   Frees all memory allocated by the sieve engine. 
54
55
 *   Compiles the script into a binary.
55
56
 */
56
57
struct sieve_binary *sieve_compile
57
 
        (struct sieve_instance *svinst, const char *script_path, 
 
58
        (struct sieve_instance *svinst, const char *script_location, 
58
59
                const char *script_name, struct sieve_error_handler *ehandler,
59
60
                enum sieve_compile_flags flags, enum sieve_error *error_r);
60
61
 
70
71
        (struct sieve_instance *svinst, const char *bin_path,
71
72
                enum sieve_error *error_r);
72
73
 
 
74
/* sieve_open_script:
 
75
 *
 
76
 *   First tries to open the binary version of the specified script and if it 
 
77
 *   does not exist or if it contains errors, the script is (re-)compiled. Note 
 
78
 *   that errors in the bytecode are caught only at runtime.
 
79
 */
 
80
struct sieve_binary *sieve_open_script
 
81
        (struct sieve_script *script, struct sieve_error_handler *ehandler,
 
82
                enum sieve_compile_flags flags, enum sieve_error *error_r);
 
83
 
73
84
/* sieve_open:
74
85
 *
75
86
 *   First tries to open the binary version of the specified script and if it 
77
88
 *   that errors in the bytecode are caught only at runtime.
78
89
 */
79
90
struct sieve_binary *sieve_open
80
 
        (struct sieve_instance *svinst, const char *script_path, 
 
91
        (struct sieve_instance *svinst, const char *script_location, 
81
92
                const char *script_name, struct sieve_error_handler *ehandler,
82
93
                enum sieve_compile_flags flags, enum sieve_error *error_r);
83
94
 
 
95
/* sieve_save_as:
 
96
 *
 
97
 *  Saves the binary as the file indicated by the path parameter. This function
 
98
 *  will not write the binary to disk when it was loaded from the indicated
 
99
 *  bin_path, unless update is TRUE. 
 
100
 */
 
101
int sieve_save_as
 
102
        (struct sieve_binary *sbin, const char *bin_path, bool update,
 
103
                mode_t save_mode, enum sieve_error *error_r);
 
104
 
84
105
/* sieve_save:
85
106
 *
86
 
 *  Saves the binary as the file indicated by the path parameter. If 
87
 
 *  path is NULL, it chooses the default path relative to the original
88
 
 *  script. This function will not write the binary to disk when it was
89
 
 *  loaded from the indicated bin_path, unless update is TRUE. 
 
107
 *  Saves the binary to the default location. This function will not overwrite
 
108
 *  the binary it was loaded earlier from the default location, unless update
 
109
 *  is TRUE. 
90
110
 */
91
111
int sieve_save
92
 
    (struct sieve_binary *sbin, const char *bin_path, bool update,
93
 
                        enum sieve_error *error_r);
 
112
        (struct sieve_binary *sbin, bool update, enum sieve_error *error_r);
94
113
 
95
114
/* sieve_close:
96
115
 *