comparison src/lib-storage/index/dbox-multi/mdbox-storage.h @ 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 b884441a713f
children 957060ca5b69
comparison
equal deleted inserted replaced
12585:b748c622e896 12586:a2780b694b2d
59 unsigned int creating:1; 59 unsigned int creating:1;
60 }; 60 };
61 61
62 extern struct mail_vfuncs mdbox_mail_vfuncs; 62 extern struct mail_vfuncs mdbox_mail_vfuncs;
63 63
64 struct mailbox *
65 mdbox_mailbox_alloc(struct mail_storage *storage, struct mailbox_list *list,
66 const char *name, enum mailbox_flags flags);
67
68 int mdbox_mail_open(struct dbox_mail *mail, uoff_t *offset_r, 64 int mdbox_mail_open(struct dbox_mail *mail, uoff_t *offset_r,
69 struct dbox_file **file_r); 65 struct dbox_file **file_r);
70 66
71 /* Get map_uid for wanted message. */ 67 /* Get map_uid for wanted message. */
72 int mdbox_mail_lookup(struct mdbox_mailbox *mbox, struct mail_index_view *view, 68 int mdbox_mail_lookup(struct mdbox_mailbox *mbox, struct mail_index_view *view,