32.2 Mail Header Fields
A header field in the mail buffer starts with a field name at the beginning of a line, terminated by a colon. Upper and lower case are equivalent in field names. After the colon and optional whitespace comes the contents of the field.
You can use any name you like for a header field, but normally people use only standard field names with accepted meanings.
The βFrom
β header field identifies the person sending the email (i.e., you). This should be a valid mailing address, as replies are normally sent there. The default contents of this header field are computed from the variables user-full-name
(which specifies your full name) and user-mail-address
(your email address). On some operating systems, Emacs initializes these two variables using environment variables (see General Variables). If this information is unavailable or wrong, you should customize the variables yourself (see Easy Customization).
Apart from βFrom
β, here is a table of commonly-used fields:
βTo
ββ
The mailing address(es) to which the message is addressed. To list more than one address, use commas to separate them.
βSubject
ββ
The subject of the message.
βCC
ββ
Additional mailing address(es) to send the message to. This is like βTo
β, except that these readers should not regard the message as directed at them.
βBCC
ββ
Additional mailing address(es) to send the message to, which should not appear in the header of the message actually sent. βBCC
β stands for blind carbon copies.
βFCC
ββ
The name of a file, to which a copy of the sent message should be appended. Emacs writes the message in mbox format, unless the file is in Babyl format (used by Rmail before Emacs 23), in which case Emacs writes in Babyl format. If an Rmail buffer is visiting the file, Emacs updates it accordingly. To specify more than one file, use several βFCC
β fields, with one file name in each field.
βReply-To
ββ
An address to which replies should be sent, instead of βFrom
β. This is used if, for some reason, your βFrom
β address cannot receive replies.
βMail-Reply-To
ββ
This field takes precedence over βReply-To
β. It is used because some mailing lists set the βReply-To
β field for their own purposes (a somewhat controversial practice).
βMail-Followup-To
ββ
One of more address(es) to use as default recipient(s) for follow-up messages. This is typically used when you reply to a message from a mailing list that you are subscribed to, and want replies to go to the list without sending an extra copy to you.
βIn-Reply-To
ββ
An identifier for the message you are replying to. Most mail readers use this information to group related messages together. Normally, this header is filled in automatically when you reply to a message in any mail program built into Emacs.
βReferences
ββ
Identifiers for previous related messages. Like βIn-Reply-To
β, this is normally filled in automatically for you.
The βTo
β, βCC
β, and βBCC
β fields can appear any number of times, and each such header field can contain multiple addresses, separated by commas. This way, you can specify any number of places to send the message. These fields can also have continuation lines: one or more lines starting with whitespace, following the starting line of the field, are considered part of the field. Hereβs an example of a βTo
β field with a continuation line:
To: foo@example.net, this@example.net,
bob@example.com
You can direct Emacs to insert certain default headers into the mail buffer by setting the variable mail-default-headers
to a string. Then C-x m
inserts this string into the message headers. For example, here is how to add a βReply-To
β and βFCC
β header to each message:
(setq mail-default-headers
"Reply-To: foo@example.com\nFCC: ~/Mail/sent")
If the default header fields are not appropriate for a particular message, edit them as necessary before sending the message.