View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0006227 | SOGo | Web Mail | public | 2026-06-26 15:26 | 2026-06-26 15:39 |
| Reporter | tk_umr | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | new | Resolution | open | ||
| Product Version | 5.12.9 | ||||
| Summary | 0006227: 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. | ||||
| Steps To Reproduce | 1) Create a new IMAP Identity and set the "Full Name" according to the mentioned pattern "<text>, <text> [<text>]". 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 | ||||
| Tags | encoding | ||||
|
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. |
|