Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Ruby 和 Tmail 从服务器检索一系列电子邮件。
有没有办法确定中继电子邮件的服务器的主机名?
这是TMail::ReceivedHeader#by。
mail = TMail::Mail.parse(File.read("mail")) mail["received"].each do |received| puts "Received by: #{received.by}" end