autocreate-plugin.c revision 955f066e93ed5648045d53f01d6893102fbe6675
/* Copyright (c) 2007-2012 Dovecot authors, see the included COPYING file */
/* FIXME: this plugin is only for backwards compatibility. log a warning in
v2.2 about this and in later versions remove completely */
#include "lib.h"
#include "array.h"
#include "unichar.h"
#include "mail-user.h"
#include "mail-namespace.h"
#include "mail-storage-hooks.h"
#include "autocreate-plugin.h"
static struct mailbox_settings *
{
struct mailbox_settings *const *box_set;
return *box_set;
}
return NULL;
}
static void
{
struct mail_namespace *ns;
struct mailbox_settings *set;
if (!uni_utf8_str_is_valid(vname)) {
i_error("autocreate: Mailbox name isn't valid UTF-8: %s",
vname);
return;
}
i_error("autocreate: No namespace found for mailbox: %s",
vname);
return;
}
}
if (subscriptions)
}
static void
bool subscriptions)
{
const char *value;
unsigned int i = 1;
env_name_base, ++i) < 0)
i_unreached();
}
}
static void
{
}
static struct mail_storage_hooks autocreate_mail_storage_hooks = {
};
{
i_warning("autocreate plugin is deprecated, use mailbox { auto } setting instead");
}
void autocreate_plugin_deinit(void)
{
}