~ubuntu-dev/ubuntu/lucid/dovecot/lucid-201002110912

« back to all changes in this revision

Viewing changes to src/lib-storage/index/dbox/dbox-storage.h

  • Committer: Bazaar Package Importer
  • Author(s): CHuck Short, Chuck Short
  • Date: 2009-11-06 00:47:29 UTC
  • mfrom: (4.1.9 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091106004729-i39n7v9e7d4h51f6
Tags: 1:1.2.6-1ubuntu1
* Merge from debian testing, remaining changes:
  Add new binary pkg dovecot-postfix that integrates postfix and dovecot
  automatically: (LP: #164837)
  + debian/control:
    - add new binary with short description
    - set Architecture all for dovecot-postfix (LP: #329878)
  + debian/dovecot-postfix.postinst:
    - create initial certificate symlinks to snakeoil.
    - set up postfix with postconf to:
      - use Maildir/ as the default mailbox.
      - use dovecot as the sasl authentication server.
      - use dovecot LDA (deliver).
      - use tls for smtp{d} services.
    - fix certificates paths in postfix' main.cf
    - add reject_unauth_destination to postfix' recipient restrictions
    - add reject_unknown_sender_domain to postfix' sender restrictions
    - rename configuration name on remove, delete on purge
    - restart dovecot after linking certificates
    - handle use case when postfix is unconfigurated
   + debian/dovecot-postfix.dirs: create backup directory for postfix's configuration
   + restart postfix and dovecot.
   + debian/dovecot-postfix.postrm:
     - remove all dovecot related configuration from postfix.
     - restart postfix and dovecot.
   + debian/dovecot-common.init:
     - check if /etc/dovecot/dovecot-postfix.conf exists and use it
       as the configuration file if so.
   + debian/patches/warning-ubuntu-postfix.dpatch
     - add warning about dovecot-postfix.conf in dovecot default 
       configuration file
   + debian/patches/dovecot-postfix.conf.diff:
     - Ubuntu server custom changes to the default dovecot configuration for
       better interfation with postfix
     - enable sieve plugin
   + debian/patches/dovecot-postfix.conf.diff:
     + Ubuntu server custom changes to the default dovecot configuration for
       better integration with postfix:
       - enable imap, pop3, imaps, pop3s and managesieve by default.
       - enable dovecot LDA (deliver).
       - enable SASL auth socket in postfix private directory.
   + debian/rules:
     - copy, patch and install dovecot-postfix.conf in /etc/dovecot/.
     - build architecure independent packages too
   + 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/*.
   + Fast TearDown: Update the lsb init header to not stop in level 6.
   + Add ufw integration:
     - Created debian/dovecot-common.ufw.profile.
     - debian/rules:
       + install profile
     - debian/control:
       + Suggest ufw
   + debian/{control,rules}: enable PIE hardening.
   + dovecot-imapd, dovecot-pop3: Replaces dovecot-common (<< 1:1.1). LP: #254721
   + debian/control:
     - Update Vcs-* headers.
   + debian/rules:
     - Create emtpy stamp.h.in files in dovecot-sieve/ and dovecot-managesieve/
       if they're not there since empty files are not included in the diff.gz 
       file.
   + Add SMTP-AUTH support for Outlook (login auth mechanism)
   + Dropped:
     - debian/patches/security-CVE-2009-3235: Applied upstream.
     - debian/patches/fix-pop3-assertion.dpatch: Applied upstream.
     - dovecot-sieve and dovecot-managesieve: Use the debian patches instead.

  [Chuck Short]
  - Updated dovecot-sieve to 0.1.13.
  - Updated dovecot-managesieve to 0.11.9.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
#include "mailbox-list-private.h"
6
6
 
7
7
#define DBOX_STORAGE_NAME "dbox"
8
 
#define DBOX_SUBSCRIPTION_FILE_NAME ".dbox-subscriptions"
9
 
#define DBOX_UIDVALIDITY_FILE_NAME ".dbox-uidvalidity"
 
8
#define DBOX_OLD_SUBSCRIPTION_FILE_NAME ".dbox-subscriptions"
 
9
#define DBOX_OLD_UIDVALIDITY_FILE_NAME ".dbox-uidvalidity"
 
10
#define DBOX_SUBSCRIPTION_FILE_NAME "subscriptions"
 
11
#define DBOX_UIDVALIDITY_FILE_NAME "dovecot-uidvalidity"
10
12
#define DBOX_INDEX_PREFIX "dovecot.index"
11
13
 
 
14
#define DBOX_MAILBOX_DIR_NAME "mailboxes"
12
15
#define DBOX_MAILDIR_NAME "dbox-Mails"
13
16
#define DBOX_INDEX_NAME "dbox.index"
14
17
#define DBOX_MAIL_FILE_MULTI_PREFIX "m."
83
86
                enum mail_fetch_field wanted_fields,
84
87
                struct mailbox_header_lookup_ctx *wanted_headers);
85
88
 
86
 
int dbox_save_init(struct mailbox_transaction_context *_t,
87
 
                   enum mail_flags flags, struct mail_keywords *keywords,
88
 
                   time_t received_date, int timezone_offset,
89
 
                   const char *from_envelope, struct istream *input,
90
 
                   struct mail *dest_mail, struct mail_save_context **ctx_r);
 
89
struct mail_save_context *
 
90
dbox_save_alloc(struct mailbox_transaction_context *_t);
 
91
int dbox_save_begin(struct mail_save_context *ctx, struct istream *input);
91
92
int dbox_save_continue(struct mail_save_context *ctx);
92
93
int dbox_save_finish(struct mail_save_context *ctx);
93
94
void dbox_save_cancel(struct mail_save_context *ctx);
94
95
 
 
96
struct dbox_file *
 
97
dbox_save_file_get_file(struct mailbox_transaction_context *_t,
 
98
                        uint32_t seq, uoff_t *offset_r);
 
99
 
95
100
int dbox_transaction_save_commit_pre(struct dbox_save_context *ctx);
96
101
void dbox_transaction_save_commit_post(struct dbox_save_context *ctx);
97
102
void dbox_transaction_save_rollback(struct dbox_save_context *ctx);