Mercurial > dovecot > core-2.2
diff src/lib-storage/index/dbox-single/sdbox-storage.c @ 12586:a2780b694b2d
lib-storage: mailbox_alloc() now takes a virtual mailbox name and other related API changes.
All storage_name <-> vname conversions now go through the same two
mailbox_list methods. This has many benefits, such as:
* listescape plugin is now much simpler and bugfree
* allows changing lib-storage API to use UTF-8 mailbox names in future
* allows creation of "mailbox aliases" plugin
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 20 Jan 2011 20:59:07 +0200 |
parents | 4073ccc8123f |
children | a349c50cddaa |
line wrap: on
line diff
--- a/src/lib-storage/index/dbox-single/sdbox-storage.c Thu Jan 20 19:21:20 2011 +0200 +++ b/src/lib-storage/index/dbox-single/sdbox-storage.c Thu Jan 20 20:59:07 2011 +0200 @@ -30,7 +30,7 @@ static struct mailbox * sdbox_mailbox_alloc(struct mail_storage *storage, struct mailbox_list *list, - const char *name, enum mailbox_flags flags) + const char *vname, enum mailbox_flags flags) { struct sdbox_mailbox *mbox; struct index_mailbox_context *ibox; @@ -47,7 +47,8 @@ mbox->box.list = list; mbox->box.mail_vfuncs = &sdbox_mail_vfuncs; - index_storage_mailbox_alloc(&mbox->box, name, flags, DBOX_INDEX_PREFIX); + index_storage_mailbox_alloc(&mbox->box, vname, + flags, DBOX_INDEX_PREFIX); ibox = INDEX_STORAGE_CONTEXT(&mbox->box); ibox->save_commit_pre = sdbox_transaction_save_commit_pre;