跳到主要内容

V. 示例

A. 地址​

1. Alfred E. Neuman <Neuman at BBN-TENEXA>​

2. Neuman@BBN-TENEXA​

就本地主机的邮件发送(分发)程序(有时也称为"邮件器",mailer)和远程主机的 FTP 服务器的操作而言,这两个 "Alfred E. Neuman" 示例具有相同的语义。在第一个示例中,"Alfred E. Neuman" 被邮件器忽略,因为 "Neuman at BBN-TENEXA" 已完整地指明了收件人。第二个示例不包含多余信息,同样,"Neuman@BBN-TENEXA" 即为预期的收件人。

3. Al Neuman at BBN-TENEXA​

这等同于 "Al Neuman <Al Neuman at BBN-TENEXA>"。也就是说,完整的短语 "Al Neuman" 被传递给 FTP 服务器。注意,并非所有 FTP 服务器都接受多词标识符;而且一些接受多词标识符的服务器会把每个单词当作不同的收件人(在本例中,会尝试向 "Al" 发送一份消息副本,并向 "Neuman" 发送一份副本)。

4. "George Lovell, Ted Hackle" <Shared-Mailbox at Office-1>​

这种形式可用于表示单个邮箱由多个用户共享。带引号字符串被发起主机的邮件器忽略,因为 "Shared-Mailbox at Office-1" 已完整地指明了目的邮箱。

4. Wilt (the Stilt) Chamberlain at NBA​

"(the Stilt)" 是一个注释,它不会(NOT)包含在交给发起系统邮件器的目的邮箱地址中。该地址是字符串 "Wilt Chamberlain",第一个和第二个单词之间恰好有一个空格。(不包含引号。)

B. 地址列表​

Gourmets:  Pompous Person <WhoZiWhatZit at Cordon-Bleu>,
Cooks: Childs at WGBH, Galloping Gourmet at
ANT (Australian National Television);,
Wine Lovers: Cheapie at Discount-Liquors,
Port at Portugal;;,
Jones at SEA

这个组列表示例说明了注释的使用、组的嵌套以及地址与组的混用。注意,"Jones at SEA" 之前的两个连续分号意味着 Jones 不是(NOT)Gourmets 组的成员。

C. 发起者项​

1. 作者自己发送​

George Jones 以 "Jones" 登录其主机。他自己发送邮件。

From:  Jones at Host

或

From:  George Jones <Jones at Host>

2. 秘书代发​

George Jones 在其主机上以 Jones 登录。他的秘书以 Secy 登录 Shost,替他发送邮件。当然,对该邮件的回复应当发给 George。

From:    George Jones <Jones at Host>
Sender: Secy at SHost

3. 共享目录或不具代表性的目录名​

George Jones 以 Group at Host 登录。他自己发送邮件;回复应当发到 Group 邮箱。

From:  George Jones <Group at Host>

4. 秘书代共享目录的用户发送​

George Jones 的秘书在以 Secy at Host 登录期间,以 George 作为 Group 成员的身份替他发送邮件。回复应当发给 Group。

From:   George Jones<Group at Host>
Sender: Secy at Host

注意,"Jones" 与 "<" 之间不必有空格,但添加空格可提高可读性(如其他示例中那样)。

5. 秘书作为作者的全权代理​

George Jones 请他的秘书(Secy at Host)以他作为 Group 的身份替他发送一条消息。他希望秘书处理所有回复。

From:     George Jones <Group at Host>
Sender: Secy at Host
Reply-To: Secy at Host

6. 为没有在线邮箱的用户充当代理​

George 的一位非 ARPANET 用户的朋友 Sarah 前来访问。George 的秘书向 Sarah 在计算机世界里的一位朋友发送了一些邮件。回复应当发给 George,其邮箱为 Jones at Host。

From:     Sarah Friendly
Sender: Secy at Host
Reply-To: Jones at Host

7. 由委员会成员发送​

George 是一个委员会的成员。他希望对其消息的任何回复都发给所有委员会成员。

From:     George Jones
Sender: Jones at Host
Reply-To: Big-committee: Jones at Host,
Smith at Other-Host,
Doe at Somewhere-Else;

注意,如果 George 没有把自己列入 Big-committee 的枚举,他就不会得到隐式的回复;"Reply-to" 字段的存在会取代(SUPERSEDES)向 "From" 字段所指人员发送回复的做法。

8. 错误(INCORRECT)用法示例​

George 希望回复发给他的秘书;因此他的秘书在 "From" 字段中省去了他的邮箱地址,只留下他的姓名,而姓名本身并不是邮箱地址。

From:   George Jones
Sender: Secy at SHost

这是不允许的。回复绝不会(NEVER)隐式地发送给 "Sender";George 的秘书本应使用 "Reply-To" 字段,或者邮件创建程序本应强制秘书这样做。

9. 为委员会成员充当代理​

George 的秘书发出了一条由 "Big-committee" 全体成员共同撰写的消息。

From:   Big-committee: Jones at Host,
Smith at Other-Host,
Doe at Somewhere-Else;
Sender: Secy at SHost

D. 完整的头​

1. 所需最小集:​

Date:  26 August 1976 1429-EDT
From: Jones at Host

2. 使用部分附加字段:​

Date: 26 August 1976 1430-EDT
From:George Jones<Group at Host>
Sender:Secy at SHOST
To:Al Neuman at Mad-Host,
Sam Irving at Other-Host
Message-ID: <some string at SHOST>

3. 大约已是你能遇到的最复杂的情形:​

Date     :  27 Aug 1976 0932-PDT
From : Ken Davis <KDavis at Other-Host>
Subject : Re: The Syntax in the RFC
Sender : KSecy at Other-Host
Reply-To : Sam Irving at Other-Host
To : George Jones <Group at Host>,
Al Neuman at Mad-Host
cc : Important folk:
Tom Softwood <Balsa at Another-Host>,
Sam Irving at Other-Host;,
Standard Distribution::Include:
</main/davis/people/standard at Other-Host,
"<Jones>standard.dist.3" at Tops-20-Host>,
(The following Included Postal list is part
of Standard Distribution.)
:Postal::Include: Non-net-addrs@Other-host;,
:Postal: "Sam Irving, P.O. Box 001, Las Vegas,
Nevada" (So that he can stay
apprised of the situation)
Comment : Sam is away on business. He asked me to handle
his mail for him. He'll be able to provide a
more accurate explanation when he returns
next week.
In-Reply-To: <some string at SHOST>
Special (action): This is a sample of multi-word field-
names, using a range of characters. There
could also be a field-name "Special (info)".
Message-ID: <4231.629.XYzi-What at Other-Host>