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.