[Bug 253759] send mail does not quote GECOS information for From header
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Feb 22 11:12:12 UTC 2021
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253759
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 at FreeBSD.org
Reporter: michael.osipov at siemens.com
My GECOS field contains the following data: "LDA CaFE (DW) Service User Admin"
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) Service
User Admin <root>\nH?x?Full-Name: L
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list