跳到主要内容

II.D. 示例

1. 地址​

a. Alfred E. Newman <Newman at BBN-TENEXA> / Newman@BBN-TENEXA​

Alfred E. Newman <Newman at BBN-TENEXA>
Newman@BBN-TENEXA

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

b. Al Newman at BBN-TENEXA​

Al Newman at BBN-TENEXA

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

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

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

这种形式可用于表示某个邮箱由多个用户共用。始发主机的邮件程序会忽略带引号字符串,因为 "Shared-Mailbox at Office-1" 已完整指明了目标邮箱。

d. Wilt (the Stilt) Chamberlain at NBA​

Wilt (the Stilt) Chamberlain at NBA

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

2. 地址列表​

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

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

3. 发件人项​

a. 本人发送的邮件​

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

From:  Jones at Host

或

From:  George Jones <Jones at Host>

b. 由秘书代发的邮件​

George Jones 在他的主机上以 Jones 的身份登录。他的秘书在她的主机(SHost)上以 Secy 的身份登录,代他发送邮件。当然,对邮件的回复应当发给 George。

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

c. 来自组邮箱的邮件​

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

From:  George Jones <Group at Host>

d. 秘书代组成员发送邮件​

George Jones 的秘书以 Secy at Host 的身份登录,代 George 以 Group 成员的身份发送邮件。回复应当发送到 Group。

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

请注意,"Jones" 和 < 之间不一定要有空格,但加一个空格可以增强可读性(其他示例中就是如此)。

e. 由秘书处理所有回复​

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

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

f. 没有邮箱的作者​

George 的一位非 ARPANET 用户朋友 Sarah 来访。George 的秘书给 Sarah 在计算机领域的一位朋友发送了一些邮件。回复应当发给 George,他的邮箱是 Jones at Host。

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

g. 回复发给委员会​

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:" 字段中所指名的人发送回复的做法。

h.(错误用法的示例)​

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

From:   George Jones
Sender: Secy at SHost

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

i. 联合撰写的消息​

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

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

4. 完整的头部​

a. 最低要求​

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

b. 使用部分附加字段​

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

c. 大致是你能遇到的最复杂的情形​

Date:       27 Aug 1976 0932-PDT
From: Ken Davis <KDavis at Other-Host>
Sender: KSecy at Other-Host
Reply-to: Sam Irving at Other-Host
Subject: Re: The Syntax in the RFC
To: George Jones <Group at Host>,
Al Newman at Mad-Host
cc: Tom Softwood <Balsa at Another-Host>,
Sam Irving at Other-Host,
Standard Distribution:
:File:
</main/davis/people/standard at Other Host,
"<Jones>standard.dist.3" at Tops-20-Host>
In-Reply-to: <some string at SHOST>
Message-ID: 4231.629.XYzi-What at Other-Host
Comment: Sam is away on business. He asked me to handle
his mail for him today. He'll be able to
provide a more accurate explanation tomorrow
when he returns.