Skip to main content
本 notebook 展示how to load email (.eml) or Microsoft Outlook (.msg) files. Please see Unstructured for more instructions on setting up Unstructured locally, including setting up required system dependencies.

Using unstructured

Retain elements

在底层,Unstructured 为不同的文本块创建不同的 “elements”。默认情况下我们将它们组合在一起,但你可以通过指定 mode="elements" 轻松保持这种分离。

Processing attachments

You can process attachments with UnstructuredEmailLoader by setting process_attachments=True in the constructor. By default, attachments will be partitioned using the partition function from unstructured. You can use a different partitioning function by passing the function to the attachment_partitioner kwarg.

Using OutlookMessageLoader