Skip to content

fix: improved widget for mailbox selection - #13318

Closed
madbob wants to merge 1 commit into
nextcloud:mainfrom
madbob:issue_8726
Closed

madbob wants to merge 1 commit into
nextcloud:mainfrom
madbob:issue_8726

Conversation

@madbob

@madbob madbob commented Jul 18, 2026

Copy link
Copy Markdown
Collaborator

Diving into #8726 I stumbled upon MailboxInlinePicker, the only user of @riophae/vue-treeselect, a not-so-lightweight dependency which did not received any update in the last 7 years.

So I rewrote it using the more familiar NcSelect, which do not permit nested navigation and selection of subfolders. Let you evaluate if this is an acceptable loss.

This PR includes:

  • major rewrite of MailboxInlinePicker, as specified above
  • major rewrite of AccountDefaultsSettings, to adapt to the new MailboxInlinePicker, remove most of the duplicated code around, and separate the flags to disable the single inputs while saving (which was the original request of Default folder selection jumps #8726)
  • minor review of ActionFileinto, also to be adapted to the new MailboxInlinePicker
  • remove of all specific CSS style targeting vue-treeselect

My only concern is about the filter on mailboxHasRights, which has been here removed. It is not entirely clear to me what kind of check was here performed, but if it was required perhaps the same elaboration should be added also to Quick Folders selections (cfr. #13305) and similar folder/subfolder selections.

Fixes #8726

Note: if this PR is merged, I recommend to remove then the dependency from @riophae/vue-treeselect in package.json: I avoided to change that myself in order to not mess up with package-lock.json

@ChristophWurst

Copy link
Copy Markdown
Member

which did not received any update in the last 7 years

🫣 good catch

@github-actions

github-actions Bot commented Aug 2, 2026

Copy link
Copy Markdown

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

@kesselb

kesselb commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

My only concern is about the filter on mailboxHasRights, which has been here removed. It is not entirely clear to me what kind of check was here performed, but if it was required perhaps the same elaboration should be added also to Quick Folders selections (cfr. #13305) and similar folder/subfolder selections.

Context: IMAP ACL https://datatracker.ietf.org/doc/html/rfc4314.html#section-2.1

A mailbox can have a list of acls. If that's the case (often for shared mailboxes), then we need to check if the mailbox has "i" otherwise we cannot use it as target.

@kesselb kesselb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking care 👍

Please add the mailboxHasRights check back.

Signed-off-by: Roberto Guido <info@madbob.org>
@madbob

madbob commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator Author

Please add the mailboxHasRights check back.

Added.

And this also replies to my question about Quick Actions: the check about permissions have to be applied also in that context. Or MailboxInlinePicker can be directly used also there. I will submit a PR in the next days.

@madbob

madbob commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator Author

Dependency to @riophae/vue-treeselect has been suppressed in #13626.
Issue #8726 still exists, but it is worth to provide a new PR from scratch rather than rework this one.
Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Default folder selection jumps

3 participants