Lines Matching defs:zuser
67 static void zlib_mail_cache_close(struct zlib_user *zuser)
69 struct zlib_mail_cache *cache = &zuser->cache;
77 zlib_mail_cache_open(struct zlib_user *zuser, struct mail *mail,
80 struct zlib_mail_cache *cache = &zuser->cache;
85 zlib_mail_cache_close(zuser);
107 zlib_mail_cache_close, zuser);
121 struct zlib_user *zuser = ZLIB_USER_CONTEXT(_mail->box->storage->user);
122 struct zlib_mail_cache *cache = &zuser->cache;
156 *stream = zlib_mail_cache_open(zuser, _mail, *stream, (_mail->uid > 0));
165 struct zlib_user *zuser = ZLIB_USER_CONTEXT(_mail->box->storage->user);
166 struct zlib_mail_cache *cache = &zuser->cache;
175 zlib_mail_cache_close(zuser);
229 struct zlib_user *zuser = ZLIB_USER_CONTEXT(box->storage->user);
236 output = zuser->save_handler->create_ostream(ctx->data.output,
237 zuser->save_level);
247 struct zlib_user *zuser = ZLIB_USER_CONTEXT(box->storage->user);
249 if (zuser->save_handler == NULL) {
305 struct zlib_user *zuser = ZLIB_USER_CONTEXT(box->storage->user);
307 if (zuser->cache.box == box)
308 zlib_mail_cache_close(zuser);
331 struct zlib_user *zuser = ZLIB_USER_CONTEXT(user);
333 zlib_mail_cache_close(zuser);
334 zuser->module_ctx.super.deinit(user);
340 struct zlib_user *zuser;
343 zuser = p_new(user->pool, struct zlib_user, 1);
344 zuser->module_ctx.super = *v;
345 user->vlast = &zuser->module_ctx.super;
350 zuser->save_handler = compression_lookup_handler(name);
351 if (zuser->save_handler == NULL)
353 else if (zuser->save_handler->create_ostream == NULL) {
355 zuser->save_handler = NULL;
360 if (str_to_uint(name, &zuser->save_level) < 0 ||
361 zuser->save_level < 1 || zuser->save_level > 9) {
363 zuser->save_level = 0;
366 if (zuser->save_level == 0)
367 zuser->save_level = ZLIB_PLUGIN_DEFAULT_LEVEL;
368 MODULE_CONTEXT_SET(user, zlib_user_module, zuser);