Skip to content

[Bug]: Dragging an email to another folder intermittently clears the sidebar folder tree #780

Description

@Dimaon

Description

Dragging a single email to a different folder using the sidebar drop target can intermittently leave the mail sidebar with only the built-in Inbox and Scheduled folders. Custom folders disappear from the UI immediately after the drop. Reloading the page restores the full folder tree.

The folders are not deleted; this appears to be a client-side state or synchronization problem.

Steps to Reproduce

  1. Use an account with multiple custom mail folders.
  2. Drag a single email from one folder and drop it onto another folder in the sidebar.
  3. Repeat the operation until the sidebar state fails.

Expected Behavior

The message moves to the destination folder and the complete folder tree remains visible.

Actual Behavior

After a drag-and-drop operation, the sidebar sometimes retains only Inbox and Scheduled while custom folders disappear. Tags remain visible and Inbox may display as empty. Reloading the page immediately restores the complete folder tree.

Bulwark Version

1.8.1

Stalwart Mail Server Version

0.16.6

Browser

No response

Operating System

None

Screenshots / Screen Recording

No response

Relevant Logs or Error Output

No browser-console error was observed when the condition occurred.

Additional Context

Reproduces in Chrome on macOS. The trigger is the drag-and-drop gesture for a single email, not normal navigation. A reload restores the UI immediately. This seems related to client-side mailbox/sidebar state problems reported in #399 and #414, but the symptom here is the complete custom folder tree disappearing after a single drag-and-drop move.

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