nextcloud / mail

💌 Mail app for Nextcloud
https://apps.nextcloud.com/apps/mail
GNU Affero General Public License v3.0
846 stars 259 forks source link

When you try to 'marks as read' an un-open subfolder, it shows an error #3335

Open GretaD opened 4 years ago

GretaD commented 4 years ago

Expected behavior

No error

Actual behavior

Tell us what happens instead

The error: POST http://localhost/nextcloud/index.php/apps/mail/api/accounts/1/folders/cXdlci4xMTExMQ%3D%3D/sync 428 (Precondition required)

Could not sync envelopes: Request failed with status code 428 Error: Request failed with status code 428

Mail app

Mail app version: latest

ChristophWurst commented 4 years ago

The problem is that we always dispatch a sync after the mark read action. But the sync has a precondition that the mailbox has to be cached. We can simply catch and ignore this error as everything is fine. The changes are made on IMAP anyway.