Re: reading the sharedseen inside mboxlist.c

Ken Murchison <[email protected]> Wed, 16 Apr 2025 08:30:27 -0400
Newsgroups gmane.mail.imap.cyrus
Organization Fastmail US LLC
Message-ID <[email protected]>
Please create an issue, or preferably a pull request, on GitHub 
<https://github.com/cyrusimap/cyrus-imapd> and the Cyrus team will discuss.


On 4/16/25 4:18 AM, Matteo A. wrote:
> 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 <https://cyrus.topicbox.com/latest>* / Info / see discussions 
> <https://cyrus.topicbox.com/groups/info> + participants 
> <https://cyrus.topicbox.com/groups/info/members> + delivery options 
> <https://cyrus.topicbox.com/groups/info/subscription> Permalink 
> <https://cyrus.topicbox.com/groups/info/T150d344237b2338e-M2312dc6c10d935cdd8301195> 
>

-- 
Kenneth Murchison
Senior Software Developer
Fastmail US LLC
IETF MailMaint Chair

------------------------------------------
Cyrus: Info
Permalink: https://cyrus.topicbox.com/groups/info/T150d344237b2338e-M8e17a76ced4d57586f0732dc
Delivery options: https://cyrus.topicbox.com/groups/info/subscription