Some headers should be inserted into a mail message only if
a certain delivery agent is used.
For example, one traditionally should include the
header when mail is being delivered with UUCP but should not include it
for most other delivery agents.
The mechanism that governs inclusion is a list
of flags that prefix the header definition in the configuration file.
Those flags are composed of a series of one or more letters, all of
which are surrounded with a pair of
decides whether a header is to be added
to the mail message, it compares the
the flags of the delivery agent's
Mhub, P=[IPC], S=Hubset, R=0, F=mDFMuXa, T=DNS/RFC822/SMTP, A=IPC $h
If a given
(letter) appears in both, the header
is added to the mail message. Otherwise, it is not.
Traditionally, for example, the
flag is used to indicate
the need for a
header. But our hub
delivery agent does not have an
Since that is the only delivery agent we use, we need to add
that flag to the
header is used to display the full name
of the sender, as taken from the
field of the
(5) file. You saw above how the hub machine tries
to add the sender's full name to the
But since you don't necessarily have control over the hub, you should
header locally, so that the full name
is displayed even if the hub fails to add it.
The way to declare the
header is like this:
H?x?Full-Name: $?x$x$. # Add full name if available
First prefix it with the
flag. This means that
header is added only if the
delivery agent also contains that flag.
The value given to the
header is just like
the conditional that you saw earlier. If (
) the macro
contains a value, use that value (
), and endif (
We use this conditional test so that the full name is added only if
it is known.
Next, to make the
effective, you need to
flag to the
delivery agent declaration:
Mhub, P=[IPC], S=Hubset, R=0, F=
mDFMuXa, T=DNS/RFC822/SMTP, A=IPC $h
Now any mail that uses the
delivery agent for a recipient
(in other words, all mail)
will add a
header to the message if there is not
already one there. If the full name is known (
has a value),
that name follows the
header on the same line;
otherwise, the header contains only the header name and is omitted entirely.
header is required in all messages to show the
time and day that the message originated.
It is a good idea to include
in its definition so that custom delivery agents
that do not need the
can be designed later.
H?D?Date: $a # Add if F=D
of the mail message
in RFC822 format. That date is set internally by
to be correct for inclusion in the
flag already exists in the
Mhub, P=[IPC], S=Hubset, R=0, F=xm
FMuXa, T=DNS/RFC822/SMTP, A=IPC $h
add the date if missing
was originally put in this delivery agent definition
header in mind.
header is used to uniquely identify
each mail message. It must be inserted into the message when
it is first created (first handled by
). The form
header is very specific:
H?M?Message-Id: <$t.$i@$j> # Add if F=M
prefix is included. The
definition already has the
Mhub, P=[IPC], S=Hubset, R=0, F=xmDF
uXa, T=DNS/RFC822/SMTP, A=IPC $h
add the message identifier if missing
The field following the
particular rules. First, it must be surrounded by angle brackets.
Then, what appears between the angle brackets must look like a legal
The address must be composed of pieces of information that uniquely
identify the mail message worldwide. We create that address
in a way that is commonly used in most configuration files:
is the current date and time represented by an integer.
is the local unique identifier for the queue file for this message
(even if the message isn't queued), and
is your host's
fully qualified domain name. Other information may be used, provided that
the result looks like a legal address and provided that no two identical
identifiers ever go out.