Skip to main content

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)

  1. You need to create an App Registration in Microsoft Entra ID. Refer here
  2. API Permissions for the created app:
    1. 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

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file llama_index_readers_microsoft_outlook_emails-0.2.1.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_microsoft_outlook_emails-0.2.1.tar.gz
Algorithm Hash digest
SHA256 91a80dfc076c2a011b187b40cbb800c572c5307a882b7c81994e5fa360fc1d4c
MD5 9e4bb1c41935e3a73aafa2bd89303956
BLAKE2b-256 ad051ac5779eb64b8744b8ed404edee7fb0d7e2f2f2b7f5b7c200ff680b0dcf8

See more details on using hashes here.

File details

Details for the file llama_index_readers_microsoft_outlook_emails-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_readers_microsoft_outlook_emails-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 604e7f78cfe60435a19039079e19b28965f16eb5c08fc27402944002baeab175
MD5 c7bad452e5e297d10d0231fc193dd568
BLAKE2b-256 9b7e46462806132c1374bd28f3d173ed5ea7e6ac55f7d422551fac14bb5fcad8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page