Phân tích tệp tin Nhắn Outlook trong Jython

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

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

Mã Jython

 from aspose-email import Settings

from com.aspose.email import MapiMessage

class ParseOutlookMessageFile:

    def __init__(self):



        dataDir = Settings.dataDir + 'ProgrammingOutlook/WorkingWithOutlookMessageFiles/ParseOutlookMessageFile/'



        mapiMessage=MapiMessage()

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

        # Display sender's name

        print "Sender Name : " 

        print outlook_message_file.getSenderName()

        #Display Subject

        print "Subject : " 

        print outlook_message_file.getSubject()

        # Display Body

        print "Body : " 

        print outlook_message_file.getBody()





if __name__ == '__main__':        

    ParseOutlookMessageFile()

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: