static const char *mailbox_archive_fname(struct mailbox *mailbox, uint32_t uid)
{
    uint32_t legacy_dirs = (mailbox_mbtype(mailbox) & MBTYPE_LEGACY_DIRS);
    return mboxname_archivepath(mailbox_partition(mailbox), mailbox_name(mailbox),
                                legacy_dirs ? NULL : mailbox_uniqueid(mailbox),
                                uid);
}
static const char *mailbox_archive_fname(struct mailbox *mailbox, uint32_t uid)
{
    uint32_t legacy_dirs = (mailbox_mbtype(mailbox) & MBTYPE_LEGACY_DIRS);
    return mboxname_archivepath(mailbox_partition(mailbox), mailbox_name(mailbox),
                                legacy_dirs ? NULL : mailbox_uniqueid(mailbox),
                                uid);
}