version 1.68, 2014/11/24 22:30:16 |
version 1.69, 2014/12/16 18:36:46 |
|
|
are not expanded when the mail is sent, |
are not expanded when the mail is sent, |
but any reply returned to the machine will have the system wide |
but any reply returned to the machine will have the system wide |
alias expanded as all mail goes through an MTA. |
alias expanded as all mail goes through an MTA. |
|
.Ss Recipient address specifications |
|
Recipient addresses (any of the |
|
.Dq To , |
|
.Dq Cc |
|
or |
|
.Dq Bcc |
|
header fields) are subject to expansion when the |
|
.Ic expandaddr |
|
option is set. |
|
.Pp |
|
An address may be expanded as follows: |
|
.Bl -bullet -width Ds |
|
.It |
|
An address that starts with a pipe |
|
.Pq Ql | |
|
character is treated as a command to run. |
|
The command immediately following the |
|
.Ql | |
|
is executed with the message as its standard input. |
|
.It |
|
An address that starts with a |
|
.Ql + |
|
character is treated as a folder. |
|
.It |
|
An address that contains a |
|
.Ql / |
|
character but no |
|
.Ql \&! , |
|
.Ql % , |
|
or |
|
.Ql @ |
|
characters is also treated as a folder. |
|
.It |
|
If none of the above apply, the recipient is treated as |
|
a local or network mail address. |
|
.El |
|
.Pp |
|
If the |
|
.Ic expandaddr |
|
option is not set (the default), no expansion is performed and |
|
the recipient is treated as a local or network mail address. |
.Ss Network mail (ARPA, UUCP, Berknet) |
.Ss Network mail (ARPA, UUCP, Berknet) |
See |
See |
.Xr mailaddr 7 |
.Xr mailaddr 7 |
|
|
.Nm mail |
.Nm mail |
to interpret a period alone on a line as the terminator |
to interpret a period alone on a line as the terminator |
of a message you are sending. |
of a message you are sending. |
|
.It Ar expandaddr |
|
Causes |
|
.Nm mail |
|
to expand message recipient addresses, as explained in the section |
|
.Sx Recipient address specifications . |
.It Ar hold |
.It Ar hold |
This option is used to hold messages in the system mailbox |
This option is used to hold messages in the system mailbox |
by default. |
by default. |