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

« back to all changes in this revision

Viewing changes to src/lib-storage/list/mailbox-list-subscriptions.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
1
#ifndef MAILBOX_LIST_SUBSCRIPTIONS_H
2
2
#define MAILBOX_LIST_SUBSCRIPTIONS_H
3
3
 
 
4
enum mailbox_info_flags;
 
5
enum mailbox_list_iter_flags;
 
6
struct mailbox_tree_context;
4
7
struct mailbox_list_iterate_context;
5
 
struct mailbox_tree_context;
6
 
 
7
 
int mailbox_list_subscriptions_fill(struct mailbox_list_iterate_context *ctx,
8
 
                                    struct mailbox_tree_context *tree_ctx,
9
 
                                    struct imap_match_glob *glob,
10
 
                                    bool update_only);
 
8
 
 
9
int mailbox_list_subscriptions_refresh(struct mailbox_list *src_list,
 
10
                                       struct mailbox_list *dest_list);
 
11
 
 
12
/* Set MAILBOX_SUBSCRIBED and MAILBOX_CHILD_SUBSCRIBED flags,
 
13
   clearing them if they already are there when they shouldn't. */
 
14
void mailbox_list_set_subscription_flags(struct mailbox_list *list,
 
15
                                         const char *vname,
 
16
                                         enum mailbox_info_flags *flags);
 
17
 
 
18
/* Add subscriptions matching the iteration to the given tree */
 
19
void mailbox_list_subscriptions_fill(struct mailbox_list_iterate_context *ctx,
 
20
                                     struct mailbox_tree_context *tree,
 
21
                                     bool default_nonexistent);
 
22
 
 
23
/* Iterate through subscriptions, call mailbox_list.get_mailbox_flags()
 
24
   if necessary for mailboxes to get their flags. */
 
25
struct mailbox_list_iterate_context *
 
26
mailbox_list_subscriptions_iter_init(struct mailbox_list *list,
 
27
                                     const char *const *patterns,
 
28
                                     enum mailbox_list_iter_flags flags);
 
29
const struct mailbox_info *
 
30
mailbox_list_subscriptions_iter_next(struct mailbox_list_iterate_context *ctx);
 
31
int mailbox_list_subscriptions_iter_deinit(struct mailbox_list_iterate_context *ctx);
11
32
 
12
33
#endif