Skip to content

## 🐞 Bug: Mail search fails with diacritics in Safari (macOS) – "Could not open folder" #12797

@PeViz

Description

@PeViz

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

  • This appears to be related to encoding / IMAP SEARCH handling

  • Possibly caused by:

    • incorrect UTF-8 handling
    • Unicode normalization differences (Safari vs Chromium)
    • improper escaping of IMAP search query
  • The error message is misleading — the issue is not related to folders


🌐 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.

Metadata

Metadata

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions