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: b...@freebsd.org
          Reporter: michael.osi...@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.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to