Re: reading the sharedseen inside mboxlist.c

"Matteo A. via Info" <[email protected]> Wed, 16 Apr 2025 08:18:29 +0000
Newsgroups gmane.mail.imap.cyrus
Message-ID <[email protected]>
Yes, thank you Ken.
We followed your hint and now we have successfully get sharedseen value of parent:

    /* if parent mailbox has sharedseen, set sharedseed on this new mailbox too */
    mbentry_t *mbentry_parent = NULL;
    r = mboxlist_findparent(mbentry->name, &mbentry_parent);
    if (r == 0) {
        struct mailbox *mailbox_parent = NULL;
        int r = mailbox_open_from_mbe(mbentry_parent, &mailbox_parent);
        if (r == 0) {
            if (mailbox_parent->i.options & OPT_IMAP_SHAREDSEEN) {
                options |= OPT_IMAP_SHAREDSEEN;
            }
        }
        mailbox_close(&mailbox_parent);
    }
    mboxlist_entry_free(&mbentry_parent);

We think that if we create a subfolder under an account with sharedseen set to true, the subfolder should inherit that value.
Do you think this is something to include in the official codebase?
Thank you,
Matteo A.
------------------------------------------
Cyrus: Info
Permalink: https://cyrus.topicbox.com/groups/info/T150d344237b2338e-M2312dc6c10d935cdd8301195
Delivery options: https://cyrus.topicbox.com/groups/info/subscription