Net::IMAP::Envelope 中的发件人和发件人字段有什么区别?
如果您在此处查看 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.
之间有什么区别这两个领域,从概念上讲?
If you look at the doc for Net::IMAP::Envelope here
http://www.ruby-doc.org/stdlib/libdoc/net/imap/rdoc/classes/Net/IMAP.html
the struct includes these two fields:
from: Returns an array of Net::IMAP::Address that represents the from.
sender: Returns an array of Net::IMAP::Address that represents the sender.
What's the difference between these two fields, conceptually?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您会看到 IMAP 从电子邮件本身解析的字段。来自维基百科的电子邮件:标题字段:
当你想回复消息时,还必须考虑 Reply-To:
该页面上有更多关于欺骗以及 MTA(服务器)试图避免和检测欺骗的讨论,但以上是信息的要点。
You're seeing fields that IMAP parsed from the email message itself. From Wikipedia's Email: Header fields:
There's also Reply-To which has to be considered when you want to reply to a message:
There is a bit more discussion on that page about spoofing and attempts by the MTA (server) to avoid and detect it, but the above is the gist of the info.