Skip to content

Stalwart mail: System folders are duplicated #11200

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
DodoLeDev opened this issue May 26, 2025 · 5 comments
Open

Stalwart mail: System folders are duplicated #11200

DodoLeDev opened this issue May 26, 2025 · 5 comments
Assignees

Comments

@DodoLeDev
Copy link

Steps to reproduce

  1. Set up a Stalwart mail server
  2. Login to it through Nextcloud Mail
  3. Enjoy the chaos 🙃

Expected behavior

  • One Drafts folder
  • One Sent folder
  • One Spam folder
  • One Trash folder
  • All the shared folders stuff in Shared folders

Actual behavior

Image

Image

Mail app version

5.1.0

Nextcloud version

31.0.2

Mailserver or service

Stalwart Mail

Operating system

Debian 12 Bookworm (official Nextcloud container)

PHP engine version

PHP 8.3

Nextcloud memory caching

No response

Web server

Apache (supported)

Database

PostgreSQL

Additional info

Note that I am dealing with accounts storing tens of Gio of data, on a replicated FoundationDB backend.

@DodoLeDev
Copy link
Author

Moreover, please note that among all these duplicated folders, only 1 or 2 of each are pointing to a working inbox, all the others are returning {"details":"Mailbox does not exist.","logged":false,"raw_msg":"IMAP error reported by server."},"CustomMessage":"IMAP error reported by server."} in the log

@DodoLeDev
Copy link
Author

DodoLeDev commented May 26, 2025

Finally, syncing these mailboxes without the --sync parameter (occ mail:account:sync -vvv <accountID>) always fails with:

In ImapToDbSynchronizer.php line 282:
                                                                            
  [OCA\Mail\Exception\ServiceException]                                     
  Sync failed for 8:<Random mailbox>: Could not open mailbox "<Random mailbox>".

Where <Random mailbox> is changing each time I run the command (and it includes the INBOX folder 🤦)

@SebastianKrupinski
Copy link
Contributor

@DodoLeDev what version or SW are you using? I have it installed so I can test this issue.

@ChristophWurst
Copy link
Member

Thank you for your report @DodoLeDev

@SebastianKrupinski please do the triage

@DodoLeDev
Copy link
Author

@DodoLeDev what version or SW are you using? I have it installed so I can test this issue.

I am currently using the 0.11.8 version (migrating to the latest 0.12 is currently not possible because of all the breaking changes it involves)

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

No branches or pull requests

3 participants