View Issue Details

IDProjectCategoryView StatusLast Update
0006227SOGoWeb Mailpublic2026-06-26 15:39
Reportertk_umr Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version5.12.9 
Summary0006227: Broken encoding of display names containing a comma and square brackets
Description

We have many users who use the format

<surname>, <given name> [department]

as their sender name (preferences: "Full Name").

SOGo does not quote the "display name" [see RFC 5322: https://www.rfc-editor.org/info/rfc5322/#section-3.4] (which is probably correct because it's not required here, I guess) when sending new messages or responding to messages with such a sender name. Instead it uses the "Q encoding" as transfer-encoding [see RFC 2047: https://www.rfc-editor.org/info/rfc2047/#section-4.2].

When encoding the display name the comma is interpreted as separator of multiple addresses and since the part before the comma is not a valid email address, "@MISSING_DOMAIN" is appended here to mark the "address".

The same display error occurs when the message was sent from a different mail client which does not quote the display name.
It does not occur (in the first place) when the display name is quoted (as e.g. Thunderbird does). But it does in replies to such messages: the recipient of the reply works when sending the message, but it's wrongly displayed when opening the reply in SOGo.

Steps To Reproduce

1) Create a new IMAP Identity and set the "Full Name" according to the mentioned pattern "<text>, <text> [<text>]".
2) Send a new message.
3) Open the new message in SOGo.

The error shows up in the "Sent" folder of the sending account as well as in the INBOX of the receiveing account.

Additional Information

This issue was reported at the SOGo users mailing list before: https://www.mail-archive.com/users@sogo.nu/msg34104.html

Tagsencoding

Activities

tk_umr

tk_umr

2026-06-26 15:39

reporter   ~0018512

Maybe the home-grown parser can be improved by the GNUstep library GSMime (https://www.gnustep.org/resources/documentation/Developer/BaseAdditions/Reference/GSMime.html). The library class GSMimeHeader probably already contains the required functionality.

Issue History

Date Modified Username Field Change
2026-06-26 15:26 tk_umr New Issue
2026-06-26 15:26 tk_umr Tag Attached: encoding
2026-06-26 15:39 tk_umr Note Added: 0018512