Skip to content

Mail 5.8.0 fails to send emails when sender display name contains Cyrillic characters #12965

@nemzorov

Description

@nemzorov

Steps to reproduce

  1. Upgrade Nextcloud Mail from 5.7.x to 5.8.0
  2. Configure a mail account with a Cyrillic display name, for example:
    Иванов Иван Иванович ivanov@company.ru
  3. Compose and send an email
  4. Sending fails with:
    Horde_Mime_Exception: Address is missing domain.
  5. Change the sender display name to Latin characters or to the email address itself
  6. Sending works correctly

Expected behavior

Emails should be sent successfully regardless of whether the sender display name contains non-ASCII characters (UTF-8/Cyrillic).

Properly MIME-encoded From headers should be accepted and processed correctly by the Mail app and Horde transport layer.

Actual behavior

Sending fails when the sender display name contains Cyrillic characters.

Nextcloud logs:

Horde_Mime_Exception: Address is missing domain.

The generated From header is MIME-encoded correctly:

From: =?utf-8?b?0JjQstCw0L3QvtCyINCY0LLQsNC9INCY0LLQsNC90L7QstC40Yc=?= ivanov@company.ru

However, Mail/Horde appears to re-parse the already encoded header incorrectly during sending, causing the encoded display name to be interpreted as an invalid email address without a domain.

Using only Latin characters in the sender display name avoids the issue.

Mail app version

No response

Nextcloud version

No response

Mailserver or service

No response

Operating system

No response

PHP engine version

None

Nextcloud memory caching

No response

Web server

None

Database

None

Additional info

No response

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