llama-index readers microsoft_outlook_emails integration
Project description
Microsoft Outlook Email Reader
pip install llama-index-readers-microsoft-outlook-emails
The loader retrieves emails from an Outlook mailbox and indexes the subject and body of the emails.
Prerequisites
App Authentication using Microsoft Entra ID (formerly Azure AD)
- You need to create an App Registration in Microsoft Entra ID. Refer here
- API Permissions for the created app:
- Microsoft Graph --> Application Permissions --> Mail.Read (Grant Admin Consent)
More info on Microsoft Graph APIs - Refer here
Usage
To use this loader, client_id, client_secret, and tenant_id of the registered app in Microsoft Azure Portal are required.
This loader fetches emails from a specified folder in an Outlook mailbox.
from llama_index.readers.outlook_emails import OutlookEmailReader
loader = OutlookEmailReader(
client_id="<Client ID of the app>",
client_secret="<Client Secret of the app>",
tenant_id="<Tenant ID of the Microsoft Azure Directory>",
user_email="<User Email Address>",
folder="Inbox",
num_mails=10,
)
documents = loader.load_data()
The loader retrieves the subject and body of the emails from the specified folder in Outlook.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llama_index_readers_microsoft_outlook_emails-0.1.1.tar.gz.
File metadata
- Download URL: llama_index_readers_microsoft_outlook_emails-0.1.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b73cf8f427b63e8a5908a6332db6d6a1996d167b04831de25a1f57dd6893a314
|
|
| MD5 |
ae67265f1bf4a1e29c52fe260cf993f8
|
|
| BLAKE2b-256 |
98c96c480049ee2a4d931380972a6cf6cf890f22a0611add2ad15e28da12256b
|
File details
Details for the file llama_index_readers_microsoft_outlook_emails-0.1.1-py3-none-any.whl.
File metadata
- Download URL: llama_index_readers_microsoft_outlook_emails-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbf9281e18a8d4b2efb0aaa16a8fb9c54cdaf60fada01602f57fd482f60951f7
|
|
| MD5 |
d28528214d831999882cdcd7af40d283
|
|
| BLAKE2b-256 |
ea6b17ae647e0abefe93ee89b859e5613e8d0652f6c3961b1fd71e6f0380ebab
|