~james-page/ubuntu/raring/dovecot/autopkgtest

« back to all changes in this revision

Viewing changes to src/dsync/dsync-proxy.h

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2012-06-11 11:11:54 UTC
  • mfrom: (1.15.2) (4.1.27 sid)
  • Revision ID: package-import@ubuntu.com-20120611111154-678cwbdj6ktgsv1h
Tags: 1:2.1.7-1ubuntu1
* Merge from Debian unstable, 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/{control,rules}: enable PIE hardening.
  + 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.
  + d/control: Drop B-D on systemd.
* Dropped changes:
  + d/patches/fix-racey-restart.patch: part of 2.1.x, no longer required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef DSYNC_PROXY_H
2
 
#define DSYNC_PROXY_H
3
 
 
4
 
#include "dsync-data.h"
5
 
 
6
 
#define DSYNC_PROXY_CLIENT_TIMEOUT_MSECS (14*60*1000)
7
 
#define DSYNC_PROXY_SERVER_TIMEOUT_MSECS (15*60*1000)
8
 
 
9
 
#define DSYNC_PROXY_CLIENT_GREETING_LINE "dsync-client\t1"
10
 
#define DSYNC_PROXY_SERVER_GREETING_LINE "dsync-server\t1"
11
 
 
12
 
struct dsync_message;
13
 
struct dsync_mailbox;
14
 
 
15
 
void dsync_proxy_strings_export(string_t *str,
16
 
                                const ARRAY_TYPE(const_string) *strings);
17
 
 
18
 
void dsync_proxy_msg_export(string_t *str, const struct dsync_message *msg);
19
 
int dsync_proxy_msg_parse_flags(pool_t pool, const char *str,
20
 
                                struct dsync_message *msg_r);
21
 
int dsync_proxy_msg_import_unescaped(pool_t pool, const char *const *args,
22
 
                                     struct dsync_message *msg_r,
23
 
                                     const char **error_r);
24
 
int dsync_proxy_msg_import(pool_t pool, const char *str,
25
 
                           struct dsync_message *msg_r, const char **error_r);
26
 
 
27
 
void dsync_proxy_msg_static_export(string_t *str,
28
 
                                   const struct dsync_msg_static_data *msg);
29
 
int dsync_proxy_msg_static_import(pool_t pool, const char *str,
30
 
                                  struct dsync_msg_static_data *msg_r,
31
 
                                  const char **error_r);
32
 
int dsync_proxy_msg_static_import_unescaped(pool_t pool,
33
 
                                            const char *const *args,
34
 
                                            struct dsync_msg_static_data *msg_r,
35
 
                                            const char **error_r);
36
 
 
37
 
void dsync_proxy_mailbox_export(string_t *str, const struct dsync_mailbox *box);
38
 
int dsync_proxy_mailbox_import(pool_t pool, const char *str,
39
 
                               struct dsync_mailbox *box_r,
40
 
                               const char **error_r);
41
 
int dsync_proxy_mailbox_import_unescaped(pool_t pool, const char *const *args,
42
 
                                         struct dsync_mailbox *box_r,
43
 
                                         const char **error_r);
44
 
 
45
 
void dsync_proxy_mailbox_guid_export(string_t *str,
46
 
                                     const mailbox_guid_t *mailbox);
47
 
int dsync_proxy_mailbox_guid_import(const char *str, mailbox_guid_t *guid_r);
48
 
 
49
 
void dsync_proxy_send_dot_output(struct ostream *output, bool *last_lf,
50
 
                                 const unsigned char *data, size_t size);
51
 
 
52
 
#endif