Phân tích các tệp tin tin nhắn Outlook trong Python

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

Để phân tích các tệp tin tin nhắn Outlook bằng Aspose.Email Java for Python, sử dụng đoạn mã sau.

Mã Python

mapiMessage = self.MapiMessage

outlook_message_file = mapiMessage.fromFile(self.dataDir + \"Message.msg\")

\# Hiển thị tên người gửi

print \"Sender Name : \" 

print outlook_message_file.getSenderName()

#Hiển thị tiêu đề

print \"Subject : \" 

print outlook_message_file.getSubject()

\# Hiển thị nội dung

print \"Body : \" 

print outlook_message_file.getBody()

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: