EXPORTED void mailbox_set_mbtype(struct mailbox *mailbox, uint32_t mbtype)
{
    mailbox->h.mbtype = mbtype;
    mailbox->header_dirty = 1;
}
EXPORTED void mailbox_set_mbtype(struct mailbox *mailbox, uint32_t mbtype)
{
    mailbox->h.mbtype = mbtype;
    mailbox->header_dirty = 1;
}