diff src/lib-storage/index/dbox-multi/mdbox-storage.c @ 16895:c238c55479c8

mdbox: Added "mdbox_deleted" storage, which can be used to access messages with refcount=0 For example: doveadm import mdbox_deleted:~/mdbox "" mailbox inbox subject oops
author Timo Sirainen <tss@iki.fi>
date Tue, 29 Oct 2013 21:08:07 +0200
parents 98702a45784c
children fa6466dcc37a
line wrap: on
line diff
--- a/src/lib-storage/index/dbox-multi/mdbox-storage.c	Tue Oct 29 21:07:28 2013 +0200
+++ b/src/lib-storage/index/dbox-multi/mdbox-storage.c	Tue Oct 29 21:08:07 2013 +0200
@@ -19,7 +19,6 @@
 
 extern struct mail_storage mdbox_storage;
 extern struct mailbox mdbox_mailbox;
-extern struct dbox_storage_vfuncs mdbox_dbox_storage_vfuncs;
 
 static struct mail_storage *mdbox_storage_alloc(void)
 {
@@ -34,9 +33,8 @@
 	return &storage->storage.storage;
 }
 
-static int
-mdbox_storage_create(struct mail_storage *_storage, struct mail_namespace *ns,
-		     const char **error_r)
+int mdbox_storage_create(struct mail_storage *_storage,
+			 struct mail_namespace *ns, const char **error_r)
 {
 	struct mdbox_storage *storage = (struct mdbox_storage *)_storage;
 	const char *dir;
@@ -64,7 +62,7 @@
 	return dbox_storage_create(_storage, ns, error_r);
 }
 
-static void mdbox_storage_destroy(struct mail_storage *_storage)
+void mdbox_storage_destroy(struct mail_storage *_storage)
 {
 	struct mdbox_storage *storage = (struct mdbox_storage *)_storage;
 
@@ -166,7 +164,7 @@
 	return &mbox->box;
 }
 
-static int mdbox_mailbox_open(struct mailbox *box)
+int mdbox_mailbox_open(struct mailbox *box)
 {
 	struct mdbox_mailbox *mbox = (struct mdbox_mailbox *)box;
 
@@ -355,14 +353,14 @@
 	return "";
 }
 
-static void mdbox_set_mailbox_corrupted(struct mailbox *box)
+void mdbox_set_mailbox_corrupted(struct mailbox *box)
 {
 	struct mdbox_storage *mstorage = (struct mdbox_storage *)box->storage;
 
 	mdbox_storage_set_corrupted(mstorage);
 }
 
-static void mdbox_set_file_corrupted(struct dbox_file *file)
+void mdbox_set_file_corrupted(struct dbox_file *file)
 {
 	struct mdbox_storage *mstorage = (struct mdbox_storage *)file->storage;