【问题标题】:What's the difference between the sender and the from field in Net::IMAP::Envelope?Net::IMAP::Envelope 中的 sender 和 from 字段有什么区别?
【发布时间】:2011-04-19 15:26:22
【问题描述】:

如果您在此处查看 Net::IMAP::Envelope 的文档

http://www.ruby-doc.org/stdlib/libdoc/net/imap/rdoc/classes/Net/IMAP.html

该结构包括这两个字段:

from:   Returns an array of Net::IMAP::Address that represents the from.
sender: Returns an array of Net::IMAP::Address that represents the sender.

从概念上讲,这两个领域有什么区别?

【问题讨论】:

  • 在电子邮件中,Reply-To: 也包含在您可以在消息回复中回复的地址组合中。

标签: ruby imap


【解决方案1】:

您会看到 IMAP 从电子邮件本身解析的字段。来自Wikipedia's Email: Header fields

发件人:电子邮件地址,以及可选的作者姓名。在许多电子邮件客户端中,除非通过更改帐户设置,否则无法更改。

发件人:在“发件人”字段中列出的代表作者行事的实际发件人的地址(秘书、列表管理员等)。

当您想回复消息时,还必须考虑回复:

Reply-To:用于回复邮件的地址。

该页面上有更多关于欺骗和 MTA(服务器)尝试避免和检测它的讨论,但以上是信息的要点。

【讨论】:

    猜你喜欢
    • 2011-05-21
    • 2011-02-09
    • 2014-12-18
    • 1970-01-01
    • 2012-10-16
    • 2014-07-31
    • 2019-06-07
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多