跳到主要内容

附录 A. 示例

A.1. 地址​

A.1.1. Alfred Neuman <Neuman@BBN-TENEXA>​

A.1.2. Neuman@BBN-TENEXA​

就本地主机的邮件发送(分发)程序(有时也称为“mailer”)以及远程主机的邮件协议服务器的运作而言,这两个 "Alfred Neuman" 示例具有相同的语义。在第一个示例中,"Alfred Neuman" 被 mailer 忽略,因为 "Neuman@BBN-TENEXA" 已完整指定了收件人。第二个示例不含任何多余信息,同样地,"Neuman@BBN-TENEXA" 就是预期的收件人。

注意:当消息跨越名字域边界时,必须修改这些规范,以指明层次结构的其余部分,从顶级开始。

A.1.3. "George, Ted" <[email protected]>​

这种形式可用于表示一个邮箱由多个用户共用。带引号字符串会被发起主机的 mailer 忽略,因为 "[email protected]" 已完整指定了目的邮箱。

A.1.4. Wilt . (the Stilt) [email protected]​

"(the Stilt)" 是一条注释,它不会(NOT)包含在交给发起系统 mailer 的目的邮箱地址中。该地址的 local-part 是字符串 "Wilt.Chamberlain",第一个词与第二个词之间没有(NO)空格。

A.1.5. 地址列表​

Gourmets:  Pompous Person <WhoZiWhatZit@Cordon-Bleu>,
[email protected], Galloping Gourmet@
ANT.Down-Under (Australian National Television),
Cheapie@Discount-Liquors;,
Cruisers: Port@Portugal, Jones@SEA;,
[email protected]

这个组列表示例指出了注释的用法,以及地址与组的混合使用。

A.2. 发起方条目​

A.2.1. 作者本人发送​

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

或者

From:  George Jones <[email protected]>

A.2.2. 秘书代发​

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

From:    George Jones <Jones@Group>
Sender: Secy@Other-Group

A.2.3. 秘书代发,针对共享目录的用户​

George Jones 的秘书替 George 发送邮件。回复应发给 George。

From:     George Jones<[email protected]>
Sender: Secy@Other-Group

请注意,"Jones" 与 "<" 之间不一定要有空格,但加上空格可提高可读性(其他示例即是如此)。

A.2.4. 委员会活动,只有一位作者​

George 是某个委员会的成员。他希望对其消息的任何回复都发给全体委员会成员。

From:     George Jones <[email protected]>
Sender: Jones@Host
Reply-To: The Committee: [email protected],
[email protected],
Doe@Somewhere-Else;

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

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

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

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

A.2.6. 为没有在线邮箱的用户代发​

George 的一位朋友 Sarah 正在来访。George 的秘书给 Sarah 在计算机领域的一位朋友发送了一些邮件。回复应发给 George,其邮箱是 Registry 处的 Jones。

From:     Sarah Friendly <Secy@Registry>
Sender: Secy-Name <Secy@Registry>
Reply-To: Jones@Registry.

A.2.7. 为委员会成员代发​

George 的秘书发出了一条由某委员会全体成员共同撰写的消息。请注意,委员会的名称无法指定,因为 From 字段中不允许使用 <group> 名称。

From:   Jones@Host,
Smith@Other-Host,
Doe@Somewhere-Else
Sender: Secy@SHost

A.3. 完整的头部​

A.3.1. 最低要求​

Date:     26 Aug 76 1429 EDT        Date:     26 Aug 76 1429 EDT
From: [email protected] or From: [email protected]
Bcc: To: [email protected]

请注意,"Bcc" 字段可以为空,而 "To" 字段则要求至少有一个地址。

A.3.2. 使用部分附加字段​

Date:     26 Aug 76 1430 EDT
From: George Jones<Group@Host>
Sender: Secy@SHOST
To: "Al Neuman"@Mad-Host,
Sam.Irving@Other-Host
Message-ID: <some.string@SHOST>

A.3.3. 大致是你所能遇到的最复杂的情形​

Date     :  27 Aug 76 0932 PDT
From : Ken Davis <[email protected]>
Subject : Re: The Syntax in the RFC
Sender : KSecy@Other-Host
Reply-To : [email protected]
To : George Jones <[email protected]>,
[email protected]
cc : Important folk:
Tom Softwood <[email protected]>,
"Sam Irving"@Other-Host;,
Standard Distribution:
/main/davis/people/standard@Other-Host,
"<Jones>standard.dist.3"@Tops-20-Host>;
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: <[email protected]>, George's message
X-Special-action: This is a sample of user-defined field-
names. There could also be a field-name
"Special-action", but its name might later be
preempted
Message-ID: <4231.629.XYzi-What@Other-Host>