~ubuntu-branches/ubuntu/trusty/dovecot/trusty-updates

« back to all changes in this revision

Viewing changes to src/lib-storage/mail-user.h

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-01-08 09:35:49 UTC
  • mfrom: (1.15.3) (96.1.1 trusty-proposed)
  • Revision ID: package-import@ubuntu.com-20140108093549-814nkqdcxfbvgktg
Tags: 1:2.2.9-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/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.
  + Use the autotools-dev dh addon to update config.guess/config.sub for
    arm64.
* Dropped changes, included in Debian:
  - Update Dovecot name to reflect distribution in login greeting.
  - Update Drac plugin for >= 2.0.0 support.
* d/control: Drop dovecot-postfix package as its no longer required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef MAIL_USER_H
2
2
#define MAIL_USER_H
3
3
 
 
4
#include "unichar.h"
4
5
#include "mail-storage-settings.h"
5
6
 
6
7
struct module;
23
24
        gid_t gid;
24
25
        const char *service;
25
26
        struct ip_addr *local_ip, *remote_ip;
 
27
        const char *auth_token;
 
28
 
26
29
        const struct var_expand_table *var_expand_table;
27
30
        /* If non-NULL, fail the user initialization with this error.
28
31
           This could be set by plugins that need to fail the initialization. */
33
36
        struct mail_user_settings *set;
34
37
        struct mail_namespace *namespaces;
35
38
        struct mail_storage *storages;
36
 
        ARRAY_DEFINE(hooks, const struct mail_storage_hooks *);
 
39
        ARRAY(const struct mail_storage_hooks *) hooks;
37
40
 
38
41
        struct mountpoint_list *mountpoints;
 
42
        normalizer_func_t *default_normalizer;
 
43
        /* Filled lazily by mailbox_attribute_*() when accessing attributes. */
 
44
        struct dict *_attr_dict;
39
45
 
40
46
        /* Module-specific contexts. See mail_storage_module_id. */
41
 
        ARRAY_DEFINE(module_contexts, union mail_user_module_context *);
 
47
        ARRAY(union mail_user_module_context *) module_contexts;
42
48
 
 
49
        /* User doesn't exist (as reported by userdb lookup when looking
 
50
           up home) */
 
51
        unsigned int nonexistent:1;
43
52
        /* Either home is set or there is no home for the user. */
44
53
        unsigned int home_looked_up:1;
45
 
        /* User is an administrator. Allow operations not normally allowed
46
 
           for other people. */
47
 
        unsigned int admin:1;
 
54
        /* User is anonymous */
 
55
        unsigned int anonymous:1;
48
56
        /* This is an autocreated user (e.g. for shared namespace or
49
57
           lda raw storage) */
50
58
        unsigned int autocreated:1;
58
66
        unsigned int fuzzy_search:1;
59
67
        /* We're running dsync */
60
68
        unsigned int dsyncing:1;
 
69
        /* Failed to create attribute dict, don't try again */
 
70
        unsigned int attr_dict_failed:1;
 
71
        /* We're deinitializing the user */
 
72
        unsigned int deinitializing:1;
61
73
};
62
74
 
63
75
struct mail_user_module_register {
131
143
bool mail_user_is_path_mounted(struct mail_user *user, const char *path,
132
144
                               const char **error_r);
133
145
 
 
146
/* Basically the same as mail_storage_find_class(), except automatically load
 
147
   storage plugins when needed. */
 
148
struct mail_storage *
 
149
mail_user_get_storage_class(struct mail_user *user, const char *name);
 
150
 
134
151
#endif