Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Feb 2021 11:12:12 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 253759] send mail does not quote GECOS information for From header
Message-ID:  <bug-253759-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253759

            Bug ID: 253759
           Summary: send mail does not quote GECOS information for From
                    header
           Product: Base System
           Version: 12.2-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: michael.osipov@siemens.com

My GECOS field contains the following data: "LDA CaFE (DW) Service User Adm=
in"
The sendmail is used to send e-mails. The "From:" is constructed literally:
"LDA CaFE (DW) Service User Admin <root>" and delivered via SMART_HOST but =
the
parentheses never arrive at the target.

When looking at rfc5322#section-3.2.3 the situation is quite clear: "(" and=
 ")"
are part of the specials production therefore section 3.2.4 says that the
display-name must be quoted to avoid interpretations on the server side.

The request is either to test GECOS for these special chars or simply always
quote GECOS information to avoid the loss of information.

Snippet from truss:
?Date: Mon, 22 Feb 2021 11:40:38 +0100 (CET)\nH?F?From: LDA CaFE (DW) Servi=
ce
User Admin <root>\nH?x?Full-Name: L

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-253759-227>