EXPORTED void mailbox_set_uniqueid(struct mailbox *mailbox, const char *uniqueid)
{
    free(mailbox->h.uniqueid);
    mailbox->h.uniqueid = xstrdup(uniqueid);
    mailbox->header_dirty = 1;
}
EXPORTED void mailbox_set_uniqueid(struct mailbox *mailbox, const char *uniqueid)
{
    free(mailbox->h.uniqueid);
    mailbox->h.uniqueid = xstrdup(uniqueid);
    mailbox->header_dirty = 1;
}