Outlook
Connect Outlook to your preprocessing pipeline, and batch process all your documents using unstructured-ingest
to store structured outputs locally on your filesystem.
First, install the Outlook dependencies as shown here.
pip install "unstructured-ingest[outlook]"
To use this source connector, you must enter a valid Azure AD app client-id, client secret, tenant-id, and email. To get the credentials for your Azure AD app, follow these steps:
- https://learn.microsoft.com/en-us/graph/auth-register-app-v2
- https://learn.microsoft.com/en-us/graph/auth-v2-service
Assign the necessary permissions for the application to read from mail: https://learn.microsoft.com/en-us/graph/permissions-reference .
Make sure to set the --partition-by-api
flag and pass in your API key with --api-key
:
Additionally, if you’re using Unstructured Serverless API, your locally deployed Unstructured API, or an Unstructured API
deployed on Azure or AWS, you also need to specify the API URL via the --partition-endpoint
argument.
Was this page helpful?