Steps to reproduce
📦 Environment
- Nextcloud version: 33
- Mail app version: 5.7.12
- Mail server: Dovecot (IMAP)
- OS: macOS
- Browser: Safari (latest version)
- Works in: Edge (Windows) ✅
- Fails in: Safari (macOS) ❌
🧩 Description
When using the search function in the Mail app with diacritics (non-ASCII characters), the search fails and displays the error:
"Could not open folder" (Složku nebylo možné otevřít)
The same search works correctly without diacritics and also works in other browsers (Edge on Windows).
Expected behavior
✅ Expected behavior
Search should work regardless of diacritics and return matching emails.
Actual behavior
❌ Actual behavior
- Search with diacritics fails
- UI shows misleading error: "Could not open folder"
- No results returned
Mail app version
5.7.12
Nextcloud version
33.0.2
Mailserver or service
Dovecot
Operating system
OSX, safari, last actual version
PHP engine version
Other
Nextcloud memory caching
No response
Web server
Apache (supported)
Database
MariaDB
Additional info
🔍 Additional notes
🌐 Browser-specific behavior
- Safari (macOS): ❌ fails with diacritics
- Edge (Windows): ✅ works correctly
This suggests a potential issue with how Safari encodes or sends the search query.
Steps to reproduce
📦 Environment
🧩 Description
When using the search function in the Mail app with diacritics (non-ASCII characters), the search fails and displays the error:
The same search works correctly without diacritics and also works in other browsers (Edge on Windows).
Expected behavior
✅ Expected behavior
Search should work regardless of diacritics and return matching emails.
Actual behavior
❌ Actual behavior
Mail app version
5.7.12
Nextcloud version
33.0.2
Mailserver or service
Dovecot
Operating system
OSX, safari, last actual version
PHP engine version
Other
Nextcloud memory caching
No response
Web server
Apache (supported)
Database
MariaDB
Additional info
🔍 Additional notes
This appears to be related to encoding / IMAP SEARCH handling
Possibly caused by:
The error message is misleading — the issue is not related to folders
🌐 Browser-specific behavior
This suggests a potential issue with how Safari encodes or sends the search query.