Skip to content

[Bug]: Folder selector in Filters configuration sometimes does not load mailbox folders #485

Description

@LinkPhoenix

Description

When creating or editing a filter, the folder selection dropdown sometimes fails to load the mailbox folder tree and only displays the placeholder:

Select folder

The expected list of mailbox folders is not loaded, making it impossible to select a destination folder for the filter.

Steps to Reproduce

  1. Open Bulwark Webmail outside the root (webmail.domain.com/) or refresh the page outside the root
  2. Navigate directly to Settings → Filters (or refresh the page while already on the Filters page).
  3. Create or edit a filter.
  4. Open the folder selection dropdown.

Actual Result

The dropdown only shows "Select folder" and does not display any mailbox folders.

Workaround

  1. Return to the main mailbox view (Inbox).
  2. Wait for the mailbox to load.
  3. Navigate back to Settings → Filters.
  4. Open the folder selector again.

The mailbox folder tree is then loaded correctly and becomes available in the dropdown.

Possible Cause

From what I can observe, the folder tree appears to be loaded only when the mailbox view is initialized.

If Bulwark is refreshed or opened directly on a page other than the main mailbox view (for example the Filters settings page), the folder selector may not have access to the mailbox folder hierarchy and therefore remains empty.

It looks like the Filters page depends on folder data that may not have been loaded yet, instead of fetching it independently when required.

Steps to Reproduce

  1. Open Bulwark Webmail outside the root (webmail.domain.com/) or refresh the page outside the root
  2. Navigate directly to Settings → Filters (or refresh the page while already on the Filters page).
  3. Create or edit a filter.
  4. Open the folder selection dropdown.

Expected Behavior

Have all folder in the list

Actual Behavior

The dropdown only shows "Select folder" and does not display any mailbox folders.

Bulwark Version

1.7.4

Stalwart Mail Server Version

0.16.10

Browser

No response

Operating System

None

Screenshots / Screen Recording

Image Image

Relevant Logs or Error Output

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions