Phân tích tệp Tin nhắn Outlook trong Ruby

Aspose.Email - Phân tích tệp Outlook Message

Để phân tích tệp Outlook Message bằng Aspose.Email Java for Ruby, chỉ cần gọi mô-đun ParseOutlookMessageFile. Ở đây bạn có thể xem mã ví dụ.

Mã Ruby


 data_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) + '/data/'

outlook_message_file = Rjb::import('com.aspose.email.MapiMessage').fromFile(data_dir + "Message.msg")

\# Display sender's name

puts "Sender Name : " + outlook_message_file.getSenderName().to_s

#Display Subject

puts "Subject : " + outlook_message_file.getSubject().to_s

\# Display Body

puts "Body : " + outlook_message_file.getBody().to_s

Tải mã đang chạy

Tải Phân tích tệp tin Outlook Message (Aspose.Email) từ bất kỳ một trong các trang mã nguồn xã hội được đề cập dưới đây: