~ubuntu-branches/ubuntu/wily/dovecot/wily

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Jaldhar H. Vyas
  • Date: 2013-09-09 00:57:32 UTC
  • mfrom: (1.13.11)
  • mto: (4.8.5 experimental) (1.16.1)
  • mto: This revision was merged to the branch mainline in revision 97.
  • Revision ID: package-import@ubuntu.com-20130909005732-dn1eell8srqbhh0e
Tags: upstream-2.2.5
ImportĀ upstreamĀ versionĀ 2.2.5

Show diffs side-by-side

added added

removed removed

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