830a9c18a0749270046905672daf2f66c7e32d56Eugen Kuksa/* Copyright (c) 2007-2018 Dovecot authors, see the included COPYING file */
830a9c18a0749270046905672daf2f66c7e32d56Eugen Kuksa/* FIXME: this plugin is only for backwards compatibility. log a warning in
554e4d0dd1f4e02034b3b142c8ea100a9f6a1fdcEugen Kuksa v2.2 about this and in later versions remove completely */
80af46b05711efde86eae411ee0c11c70433527dEugen Kuksamailbox_settings_find(struct mail_namespace *ns, const char *vname)
80af46b05711efde86eae411ee0c11c70433527dEugen Kuksaadd_autobox(struct mail_user *user, const char *vname, bool subscriptions)
80af46b05711efde86eae411ee0c11c70433527dEugen Kuksa i_error("autocreate: Mailbox name isn't valid UTF-8: %s",
80af46b05711efde86eae411ee0c11c70433527dEugen Kuksa ns = mail_namespace_find(user->namespaces, vname);
80af46b05711efde86eae411ee0c11c70433527dEugen Kuksa if ((ns->flags & NAMESPACE_FLAG_UNUSABLE) != 0) {
80af46b05711efde86eae411ee0c11c70433527dEugen Kuksa i_error("autocreate: No namespace found for mailbox: %s",
if (subscriptions)
bool subscriptions)
env_name_base, ++i) < 0)
i_unreached();