Variable: mail-from-style

mail-from-style is a customizable variable defined in sendmail.el.gz.

This variable is obsolete since 27.1; only the angles value is valid according to RFC5322.

Value

angles

Documentation

Specifies how "From:" fields look.

If nil, they contain just the return address like:
king@grassland.com
If parens, they look like:
king@grassland.com (Elvis Parsley)
If angles, they look like:
Elvis Parsley <king@grassland.com>

Otherwise, most addresses look like angles, but they look like parens if angles would need quoting and parens would not.

This variable was added, or its default value changed, in Emacs 27.1.

Probably introduced at or before Emacs version 19.29.

Source Code

;; Defined in /usr/src/emacs/lisp/mail/sendmail.el.gz
;;;###autoload
(defcustom mail-from-style 'angles
  "Specifies how \"From:\" fields look.

If nil, they contain just the return address like:
	king@grassland.com
If `parens', they look like:
	king@grassland.com (Elvis Parsley)
If `angles', they look like:
	Elvis Parsley <king@grassland.com>

Otherwise, most addresses look like `angles', but they look like
`parens' if `angles' would need quoting and `parens' would not."
  ;; The value `system-default' is now deprecated.
  :type '(choice (const :tag "simple" nil)
		 (const parens)
		 (const angles)
		 (const default))
  :version "27.1")