EXPORTED void mailbox_set_quotaroot(struct mailbox *mailbox, const char *quotaroot)
{
    if (mailbox->h.quotaroot) {
        if (quotaroot && !strcmp(mailbox->h.quotaroot, quotaroot))
            return; /* no change */
        xzfree(mailbox->h.quotaroot);
    }
    else {
        if (!quotaroot)
            return; /* no change */
    }

    if (quotaroot)
        mailbox->h.quotaroot = xstrdup(quotaroot);

    /* either way, it's changed, so dirty */
    mailbox->header_dirty = 1;
}
EXPORTED void mailbox_set_quotaroot(struct mailbox *mailbox, const char *quotaroot)
{
    if (mailbox->h.quotaroot) {
        if (quotaroot && !strcmp(mailbox->h.quotaroot, quotaroot))
            return;  
        xzfree(mailbox->h.quotaroot);
    }
    else {
        if (!quotaroot)
            return;  
    }

    if (quotaroot)
        mailbox->h.quotaroot = xstrdup(quotaroot);

     
    mailbox->header_dirty = 1;
}