Lines Matching refs:storage
8 #include "mail-storage-private.h"
146 struct snarf_mail_storage *sstorage = SNARF_CONTEXT(box->storage);
157 if (!snarf_box_find(box->storage->user, &snarf_list, &snarf_name))
173 snarf_mailbox_alloc(struct mail_storage *storage,
177 struct snarf_mail_storage *sstorage = SNARF_CONTEXT_REQUIRE(storage);
190 mail_storage_set_critical(storage,
196 if (snarf_box_find(storage->user, &snarf_list,
205 mailbox_alloc(storage, list, vname, flags);
214 snarf_mail_storage_create(struct mail_storage *storage, const char *path)
217 struct mail_storage_vfuncs *v = storage->vlast;
219 path = mail_user_home_expand(storage->user, path);
220 mstorage = p_new(storage->pool, struct snarf_mail_storage, 1);
221 mstorage->snarf_path = p_strdup(storage->pool, path);
223 storage->vlast = &mstorage->module_ctx.super;
226 MODULE_CONTEXT_SET(storage, snarf_storage_module, mstorage);
229 static void snarf_mail_storage_created(struct mail_storage *storage)
235 path = mail_user_plugin_getenv(storage->user, "mbox_snarf");
237 snarf_mail_storage_create(storage, path);