Discuz! Board

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 2616|回复: 0
打印 上一主题 下一主题

Senders: From, Sender

[复制链接]

388

主题

602

帖子

2218

积分

金牌会员

Rank: 6Rank: 6

积分
2218
跳转到指定楼层
楼主
发表于 2016-9-21 12:47:35 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 hechengjin 于 2016-10-27 09:24 编辑

Senders: From, SenderFromThe value of a From field is tokenizable. It is a target list. Three examples:     From: God@heaven.af.mil     From: The Boss <God@heaven.af.mil>     From: bill@irs.gov, audit@irs.gov
According to 822, the From field ``contains the identity of the person(s) who wished this message to be sent.'' According to 822bis, the From field ``specifies the author(s) of the message, that is, the mailbox(es) of the person(s) or system(s) responsible for the writing of the message.''
822 requires that every message contain
  • a From field whose value is a target, or
  • a From field and a Sender field.
This poses problems in practice for anonymous mail services. Readers can't assume that From conveys any useful information:     From: Anonymous <nobody@nowhere.org>People occasionally send messages without From fields. Outlook 98 (Corporate/Workgroup version, with Internet Mail Service, with the Outlook 98 Security Patch) omits From fields from local copies of outgoing messages.
Note that a From field cannot contain address groups:
     From: sender-not-shown: ;    (WRONG)Pine 3.95 reportedly crashes when it tries to read this field.SenderThe value of a Sender field is tokenizable. It is a target. For example:     From: boss@heaven.af.mil     Sender: secretary@heaven.af.milAccording to 822, the Sender field ``contains the authenticated identity of the AGENT (person, system or process) that sends the message.'' According to 822bis, the Sender field ``specifies the mailbox of the agent responsible for the actual transmission of the message.''
822 specified Sender, defaulting to From, as the target of delivery failure notices and other bounce messages. This use of Sender was already obsolete at the time: bounce messages are sent to the Return-Path address. It is unclear why Sender is supposed to be useful.
I recommend against all automated use of Sender. In practice some programs create Sender as
  • a copy of the envelope sender, or
  • a copy of From, or
  • the user's login name plus the current host name, without regard for whether this is a usable mail address.
None of these behaviors is useful. Local accounting information belongs in Received lines, not Sender lines.


http://cr.yp.to/immhf/sender.html


Sender:邮件的发送者,就相当于是from的秘书,替from传达消息。
合法的信件头部必须包括 "From:" 行
      合法的信件头部也许会包括 "Sender:" 行
   如果信件即包括 "From:" 又包括 "Sender:",那么 "Sender:" 是发送者
   如果信件包括 "From:" 但不包括 "Sender:",那么 "From:" 里面的第一个地址是发送者
   如果信件不包括 "From:",那么这封信肯定不可能是 DomainKey 签名过的(包括有 "Sender:" 而无 "From:" 的情况)   
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|firemail ( 粤ICP备15085507号-1 )

GMT+8, 2024-11-29 15:31 , Processed in 0.056737 second(s), 19 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表