mail-user.c revision 2fb9ae42f9e36388ec6db24188b9108434043fd0
/* Copyright (c) 2008-2009 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "array.h"
#include "hostpid.h"
#include "network.h"
#include "str.h"
#include "strescape.h"
#include "var-expand.h"
#include "settings-parser.h"
#include "auth-master.h"
#include "master-service.h"
#include "mail-storage-settings.h"
#include "mail-storage-private.h"
#include "mail-namespace.h"
#include "mail-storage.h"
#include "mail-user.h"
#include <stdlib.h>
struct mail_user_module_register mail_user_module_register = { 0 };
{
}
const struct setting_parser_info *set_info,
const struct mail_user_settings *set)
{
return user;
}
static int
{
unsigned int i, count;
return 0;
for (i = 0; i < count; i += 2) {
"userdb didn't return a home directory, "
"but plugin setting %s used it (%%h): %s",
return -1;
}
str_truncate(str, 0);
}
return 0;
}
{
const struct mail_storage_settings *mail_set;
"userdb didn't return a home directory, "
return -1;
}
return -1;
if (hook_mail_user_created != NULL)
return 0;
}
{
}
{
}
{
struct mail_namespace *ns;
}
return NULL;
}
{
}
}
}
const struct var_expand_table *
{
static struct var_expand_table static_tab[] = {
};
struct var_expand_table *tab;
return user->var_expand_table;
return user->var_expand_table;
}
{
}
struct mail_namespace **namespaces)
{
break;
}
}
}
{
}
}
{
return path;
}
{
struct auth_user_info info;
struct auth_user_reply reply;
int ret;
if (user->home_looked_up) {
}
if (mail_user_auth_master_conn == NULL)
return 0;
if (ret < 0)
else {
}
return ret;
}
{
}
const char *name)
{
const char *const *envs;
unsigned int i, count;
return NULL;
for (i = 0; i < count; i += 2) {
return envs[i+1];
}
return NULL;
}
{
return -1;
return -1;
}
return 0;
}
{
struct mail_namespace *ns;
const char *dir;
}
}
{
return NULL;
}