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